Bug 742200. Use JSVAL_VOID, not JSVAL_NULL, as the default value for optional arguments that are not specified. r=peterv

This commit is contained in:
Boris Zbarsky 2012-04-10 12:40:12 -04:00
parent 0744334b26
commit bd8ddda62a

View File

@ -1391,7 +1391,7 @@ class CGArgumentConverter(CGThing):
"index" : index,
"argc" : argc,
"argv" : argv,
"defaultValue" : "JSVAL_NULL",
"defaultValue" : "JSVAL_VOID",
"name" : "arg%d" % index
}
if argument.optional: