v8/test/mjsunit/bugs/bug-4577.js
adamk 067c27be65 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}
2016-01-08 20:29:46 +00:00

14 lines
337 B
JavaScript

// 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}));