summaryrefslogtreecommitdiff
path: root/js/src/tests/js1_8_5/regress/regress-552432.js
blob: 001782ffe0368c6c3df090283cbc768a05c718b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 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');