Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! src: add napi_create_symbol_for()
Browse files Browse the repository at this point in the history
Fix reference test.

Signed-off-by: Darshan Sen <darshan.sen@postman.com>
  • Loading branch information
RaisinTen committed Jan 1, 2022
1 parent 5593513 commit 93ece39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/js-native-api/test_reference/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ async function runTests() {

(() => {
const symbol = test_reference.createSymbolFor('testSymFor');
test_reference.createReference(Symbol.for('testSymFor'), 0);
test_reference.createReference(symbol, 0);
assert.strictEqual(test_reference.referenceValue, symbol);
assert.strictEqual(test_reference.referenceValue, Symbol.for('testSymFor'));
})();
test_reference.deleteReference();

Expand Down

0 comments on commit 93ece39

Please sign in to comment.