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

Function createClosure

deps/v8/test/debugger/debug/debug-scopes.js:936–946  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

934
935BeginTest("Closure inside With 3");
936function createClosure(a) {
937 var b = a + 1;
938 return function closure() {
939 var c = b;
940 (function inner(x) {
941 with({x:c}) {
942 debugger;
943 }
944 })(2);
945 };
946}
947
948function closure_in_with_3() {
949 var f = createClosure(0);

Callers 1

closure_in_with_3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected