Skip to content

Commit

Permalink
Test that Object::GetPropertyNames does not return properties whose k…
Browse files Browse the repository at this point in the history
…ey is a Symbol
  • Loading branch information
JoseExposito committed Mar 5, 2021
1 parent 12c548b commit 65d259d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/object/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ function test(binding) {
}

{
const obj = {'one': 1, 'two': 2, 'three': 3};
const testSym = Symbol();
const obj = { 'one': 1, 'two': 2, 'three': 3, [testSym]: 4 };
var arr = binding.object.GetPropertyNames(obj);
assert.deepStrictEqual(arr, ['one', 'two', 'three'])
assert.deepStrictEqual(arr, ['one', 'two', 'three']);
}

{
Expand Down

0 comments on commit 65d259d

Please sign in to comment.