Commit 067c27be authored by adamk's avatar adamk Committed by Commit bot

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}
parent dfce900d
// 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}));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment