-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P2
-
Affects Version/s: 8
-
Component/s: core-libs
-
None
-
b98
-
generic
-
generic
-
Verified
This occurs if an argument has been set to undefined before accessing to the arguments array. Any arg that would have been made undefined has a value back to the passed one.
This creates a very confusing state.
Testcase:
function f(a) {
a = undefined;
arguments[0];
// in one step:
//a = arguments[1]
print(a);
}
f('toto');
This creates a very confusing state.
Testcase:
function f(a) {
a = undefined;
arguments[0];
// in one step:
//a = arguments[1]
print(a);
}
f('toto');