add traceur test suite
This commit is contained in:
11
test/fixtures/traceur/Destructuring/NestedScopeArguments.js
vendored
Normal file
11
test/fixtures/traceur/Destructuring/NestedScopeArguments.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// Destructuring bind alpha-renames 'arguments'; this ensures that
|
||||
// renaming doesn't rename in nested scopes.
|
||||
function destructNestedScopeArguments(x) {
|
||||
[(function () { return arguments[1]; })(null, x)[0]] = [42];
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
var result = [];
|
||||
destructNestedScopeArguments(result);
|
||||
assert.equal(42, result[0]);
|
||||
Reference in New Issue
Block a user