Add test showing broken-ness of non-simple parameter named 'arguments'
This at least puts something in the tree demonstrating the breakage; it can be moved into regress/ if we fix it. R=littledan@chromium.org BUG=v8:4577 LOG=n Review URL: https://codereview.chromium.org/1576503002 Cr-Commit-Position: refs/heads/master@{#33193}
This commit is contained in:
parent
dfce900d64
commit
067c27be65
13
test/mjsunit/bugs/bug-4577.js
Normal file
13
test/mjsunit/bugs/bug-4577.js
Normal file
@ -0,0 +1,13 @@
|
||||
// Copyright 2015 the V8 project authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
function f(...arguments) {
|
||||
return Array.isArray(arguments);
|
||||
}
|
||||
assertTrue(f());
|
||||
|
||||
function g({arguments}) {
|
||||
return arguments === 42;
|
||||
}
|
||||
assertTrue(g({arguments: 42}));
|
Loading…
Reference in New Issue
Block a user