MCPcopy Create free account
hub / github.com/nodejs/node / test

Function test

deps/v8/test/webkit/array-proto-func-length-getter-except.js:38–45  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

36Object.defineProperty(testObj, "length", lengthGetter);
37
38function test(f) {
39 try {
40 f.call(testObj, undefined);
41 return false;
42 } catch (e) {
43 return e === true;
44 }
45}
46
47shouldBeTrue("test(Array.prototype.join)");
48shouldBeTrue("test(Array.prototype.pop)");

Callers

nothing calls this directly

Calls 1

callMethod · 0.45

Tested by

no test coverage detected