don't shadow default parameter scope iife and instead just apply the this and arguments - fixes #1128
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
const bar = true;
|
||||
|
||||
function foo(a = bar, ...b) {
|
||||
const bar = false;
|
||||
assert.equal(b[0], 2);
|
||||
assert.equal(b[1], 3);
|
||||
}
|
||||
|
||||
foo(1, 2, 3);
|
||||
Reference in New Issue
Block a user