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

Function TestSimple

deps/v8/test/mjsunit/harmony/private.js:377–389  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

375var s1 = %CreatePrivateSymbol("s1");
376
377function TestSimple() {
378 var p = {}
379 p[s] = "moo";
380
381 var o = Object.create(p);
382
383 assertEquals(undefined, o[s]);
384 assertEquals("moo", p[s]);
385
386 o[s] = "bow-wow";
387 assertEquals("bow-wow", o[s]);
388 assertEquals("moo", p[s]);
389}
390TestSimple();
391
392

Callers 1

private.jsFile · 0.85

Calls 2

assertEqualsFunction · 0.50
createMethod · 0.45

Tested by

no test coverage detected