summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/regress/regress-552432.js
blob: 615fd0500d115489cd1960f3eae54b9882b60e59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* -*- indent-tabs-mode: nil; js-indent-level: 4 -*- */
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */

(function (y) {
    arguments.y = 2;
    var x = Object.create(arguments);
    x[0] = 3;
    assertEq(x[0], 3);
    assertEq(x.y, 2);
    assertEq(y, 1);
})(1);

reportCompare(0, 0, 'ok');