6 Jun
2023
6 Jun
'23
3:38 p.m.
Jacek Caban (@jacek) commented about dlls/jscript/tests/lang.js:
ok(arguments === 1, "arguments = " + arguments); })();
+// duplicated argument names are shadowed by the last argument with the same name +(function(a, a, b, c) { + ok(a === 2, "function(a, a, b, c) a = " + a); + ok(b === 3, "function(a, a, b, c) b = " + b); + ok(c === 4, "function(a, a, b, c) c = " + c); + a = 42; + ok(arguments[0] === 1, "function(a, a, b, c) arguments[0] = " + arguments[0]); + ok(arguments[1] === 42, "function(a, a, b, c) arguments[1] = " + arguments[1]); +})(1, 2, 3, 4);
It would be nice to test arguments object with detached frames as well. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2942#note_34804