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

Function x

deps/v8/test/mjsunit/harmony/public-static-class-fields.js:297–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

295
296
297function x() {
298
299 // This tests lazy parsing.
300 return function() {
301 let log = [];
302 function run(i) {
303 log.push(i);
304 return i;
305 }
306
307 class C {
308 static [run(1)] = run(6);
309 static [run(2)] = run(7);
310 [run(3)]() { run(9);}
311 static [run(4)] = run(8);
312 static [run(5)]() { throw new Error('should not execute');};
313 }
314
315 let c = new C;
316 c[3]();
317 assertEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], log);
318 }
319}
320x()();
321
322{

Callers 1

Calls 1

assertEqualsFunction · 0.50

Tested by

no test coverage detected