1'use strict'; 2const common = require('../../common'); 3const assert = require('assert'); 4 5// Testing api calls for symbol 6const test_symbol = require(`./build/${common.buildType}/test_symbol`); 7 8const fooSym = test_symbol.New('foo'); 9const myObj = {}; 10myObj.foo = 'bar'; 11myObj[fooSym] = 'baz'; 12Object.keys(myObj); // -> [ 'foo' ] 13Object.getOwnPropertyNames(myObj); // -> [ 'foo' ] 14Object.getOwnPropertySymbols(myObj); // -> [ Symbol(foo) ] 15assert.strictEqual(Object.getOwnPropertySymbols(myObj)[0], fooSym); 16