blob: 3ddc141931e76deace5a7d346ba4448cde0b8abd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* -*- indent-tabs-mode: nil; js-indent-level: 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");
|