Home
last modified time | relevance | path

Searched refs:myObj (Results 1 – 5 of 5) sorted by relevance

/third_party/node/test/js-native-api/test_symbol/
Dtest2.js9 const myObj = {}; constant
10 myObj.foo = 'bar';
11 myObj[fooSym] = 'baz';
12 Object.keys(myObj); // -> [ 'foo' ]
13 Object.getOwnPropertyNames(myObj); // -> [ 'foo' ]
14 Object.getOwnPropertySymbols(myObj); // -> [ Symbol(foo) ]
15 assert.strictEqual(Object.getOwnPropertySymbols(myObj)[0], fooSym);
Dtest1.js11 const myObj = {}; constant
14 myObj.foo = 'bar';
15 myObj[fooSym] = 'baz';
16 myObj[otherSym] = 'bing';
17 assert.strictEqual(myObj.foo, 'bar');
18 assert.strictEqual(myObj[fooSym], 'baz');
19 assert.strictEqual(myObj[otherSym], 'bing');
/third_party/boost/libs/icl/example/std_transform_/
Dstd_transform.cpp52 pair<discrete_interval<int>, int> to_segment(const MyObject& myObj) in to_segment() argument
55 (discrete_interval<int>::closed(myObj.from(), myObj.to()), myObj.value()); in to_segment()
60 discrete_interval<int> to_interval(const MyObject& myObj) in to_interval() argument
62 return discrete_interval<int>::closed(myObj.from(), myObj.to()); in to_interval()
/third_party/jerryscript/tests/jerry/es2015/
Dmap.js99 var myObj = { o : 4 }; variable
100 m.set("foo", myObj);
102 assert(m.get ("foo") === myObj);
108 m.set("foo", myObj);
110 assert(m.get ("foo") === myObj);
/third_party/typescript/tests/baselines/reference/extractConstant/
DextractConstant_ContextualType_Lambda.ts3 const myObj: { member(x: number, y: string): void } = { constant
9 const myObj: { member(x: number, y: string): void } = { constant