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

Function closure_1

deps/v8/test/debugger/bugs/harmony/debug-blockscopes.js:141–152  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

139BeginTest("Closure 1");
140
141function closure_1(a) {
142 var x = 2;
143 let y = 3;
144 if (true) {
145 let z = 4;
146 function f() {
147 debugger;
148 return a + x + y + z;
149 };
150 return f;
151 }
152}
153
154listener_delegate = function(exec_state) {
155 CheckScopeChain([debug.ScopeType.Local,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected