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

Function x

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

assertEqualsFunction · 0.50

Tested by

no test coverage detected