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

Function testNoShadowing2

deps/v8/test/mjsunit/arguments-load-across-eval.js:48–61  ·  view source on GitHub ↗
(x, h)

Source from the content-addressed store, hash-verified

46
47// Test loading across eval calls that do not shadow variables.
48function testNoShadowing2(x, h) {
49 eval('1');
50 function f() {
51 eval('1');
52 assertEquals(1, x);
53 assertEquals(2, h());
54 function g() {
55 assertEquals(1, x);
56 assertEquals(2, h());
57 }
58 g();
59 }
60 f();
61}
62
63testNoShadowing2(1, function() { return 2; });
64

Callers 1

Calls 2

evalFunction · 0.70
fFunction · 0.70

Tested by

no test coverage detected