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

Function testWith

deps/v8/test/mjsunit/global-load-from-nested-eval.js:39–43  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

37
38// Shadow variable with a with statement.
39function testWith(source) {
40 with ({ x: 1 }) {
41 eval('eval(' + source +')');
42 }
43}
44testWith('assertEquals(1, x)');
45
46// Shadow variable with an eval-introduced variable.

Callers 1

Calls 1

evalFunction · 0.70

Tested by

no test coverage detected