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

Function throwingFunctionAsException

deps/v8/test/webkit/static-scope-object.js:35–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33shouldBe("namedFunctionExpression()", 'globalObject');
34
35function throwingFunctionAsException() {
36 try {
37 throw function(){ return this; }
38 } catch(e) {
39 return e();
40 }
41}
42
43shouldBe("throwingFunctionAsException()", 'globalObject');

Callers

nothing calls this directly

Calls 1

eFunction · 0.50

Tested by

no test coverage detected