Home
last modified time | relevance | path

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

/third_party/node/test/js-native-api/test_conversions/
Dtest.js10 const testSym = Symbol('test'); constant
25 assert.throws(() => test.asBool(testSym), boolExpected);
43 assert.throws(() => asInt(testSym), numberExpected);
66 assert.throws(() => test.asDouble(testSym), numberExpected);
78 assert.throws(() => test.asString(testSym), stringExpected);
87 assert.strictEqual(test.toBool(testSym), true);
109 assert.throws(() => test.toNumber(testSym), TypeError);
120 assert.deepStrictEqual(new Object(testSym), test.toObject(testSym));
140 assert.throws(() => test.toString(testSym), TypeError);