Searched refs:testSym (Results 1 – 1 of 1) sorted by relevance
10 const testSym = Symbol('test'); constant25 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);