Skip to content

Commit

Permalink
util: use private symbols in JS land directly
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
joyeecheung and aduh95 authored Nov 9, 2022
1 parent 1602d45 commit 807a42d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-util-internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ const {

const obj = {};
assert.strictEqual(obj[arrow_message_private_symbol], undefined);
assert.deepStrictEqual(Reflect.ownKeys(obj), []);

obj[arrow_message_private_symbol] = 'bar';
assert.strictEqual(obj[arrow_message_private_symbol], 'bar');
assert.deepStrictEqual(Reflect.ownKeys(obj), []);

let arrowMessage;

Expand Down

0 comments on commit 807a42d

Please sign in to comment.