summaryrefslogtreecommitdiff
path: root/js/src/tests/js1_8_5/regress/regress-586482-5.js
blob: 5ad54fda8e551a752b6ddc8ef50b5cb39771680e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* -*- 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 check() {
    obj2.__proto__ = null;
    return arguments.callee.caller;
}

var obj = { f: function() { check(); }};

var obj2 = { __proto__: obj };

obj2.f();

reportCompare(0, 0, "ok");