Home | History | Annotate | Download | only in js

Lines Matching full:caller

100 shouldThrow("(function (){'use strict'; arguments.caller; })()");
102 shouldThrow("(function f(){'use strict'; f.caller; })()");
104 shouldThrow("(function f(){'use strict'; f.caller=5; })()");
106 shouldThrow("(function (arg){'use strict'; arguments.caller; })()");
108 shouldThrow("(function f(arg){'use strict'; f.caller; })()");
110 shouldThrow("(function f(arg){'use strict'; f.caller=5; })()");
112 // arguments/caller poisoning should be visible on the intrinsic %FunctionPrototype%, but not throw with 'in' & 'hasOwnProperty'.
113 shouldBeTrue('"caller" in function(){"use strict"}');
114 shouldBeFalse('(function(){"use strict";}).hasOwnProperty("caller")');
115 shouldBeTrue('(function(){"use strict";}).__proto__.hasOwnProperty("caller")');
200 shouldBeUndefined("(function f(arg){'use strict'; return Object.getOwnPropertyDescriptor(f.__proto__, 'caller').value; })()");
202 shouldBeUndefined("(function f(arg){'use strict'; return Object.getOwnPropertyDescriptor(arguments, 'caller').value; })()");
203 shouldBeTrue("(function f(arg){'use strict'; var descriptor = Object.getOwnPropertyDescriptor(arguments, 'caller'); return descriptor.get === descriptor.set; })()");
205 shouldBeTrue("(function f(arg){'use strict'; var descriptor = Object.getOwnPropertyDescriptor(f.__proto__, 'caller'); return descriptor.get === descriptor.set; })()");
233 shouldBe('String(Object.getOwnPropertyDescriptor((function() { "use strict"; }).__proto__, "caller").get)', "'function () {\\n [native code]\\n}'");