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:
adamk 2016-01-08 12:28:55 -08:00 committed by Commit bot
parent dfce900d64
commit 067c27be65

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