Skip to content

Commit

Permalink
Test that Object::operator[] overrides object keys by index
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseExposito committed Mar 13, 2021
1 parent 4abe5b8 commit 8e2ee12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/object/subscript_operator.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ function test(binding) {
testProperty({}, 'key', 'value', binding.object.subscriptGetWithCStyleString, binding.object.subscriptSetWithCStyleString);
testProperty({ key: 'override me' }, 'key', 'value', binding.object.subscriptGetWithCppStyleString, binding.object.subscriptSetWithCppStyleString);
testProperty({}, 0, 'value', binding.object.subscriptGetAtIndex, binding.object.subscriptSetAtIndex);
testProperty({ key: 'override me' }, 0, 'value', binding.object.subscriptGetAtIndex, binding.object.subscriptSetAtIndex);
}

0 comments on commit 8e2ee12

Please sign in to comment.