Commit 52019a1b authored by Sakthipriyan Vairamani's avatar Sakthipriyan Vairamani Committed by Jeremiah Senkpiel
Browse files

test: fix default value for additional param

In Python, the default values of parameters are evaluated only once
during their declaration. So, whenever the default parameter is used
the same object will be used. Since we use a list, which is a mutable
object, this could lead to unexpected results.

PR-URL: https://github.com/nodejs/node/pull/2553


Reviewed-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
parent 59d03738
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment