Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
None
-
b96
-
generic
-
generic
-
Verified
Description
loadWithNewGlobal API allows a script to be executed in new global scope. But caller script can't pass any argument now. Caller should be able to able to pass one or more arguments to the executed script.
Example:
loadWithNewGlobal({
name: "<code>",
script:" print(arguments[0]); "+
" print(arguments[1]); " +
"print(arguments[2].foo)",
},
"hello", 23, { foo: 33}
);
Should print:
hello
22
33
Example:
loadWithNewGlobal({
name: "<code>",
script:" print(arguments[0]); "+
" print(arguments[1]); " +
"print(arguments[2].foo)",
},
"hello", 23, { foo: 33}
);
Should print:
hello
22
33