Skip to content

Commit

Permalink
Fix length and enable tests for Object.hasOwn
Browse files Browse the repository at this point in the history
Summary:
Length of `Object.hasOwn` should be 2, since it takes two parameters.
test262 caught this, so enable those tests as well.

Reviewed By: tmikov

Differential Revision: D32411696

fbshipit-source-id: 90c9b9aaf196ab9b444223fbb147369eacc803df
  • Loading branch information
neildhar authored and facebook-github-bot committed Nov 13, 2021
1 parent 1c7dc2d commit 98f5028
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/VM/JSLib/Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Handle<JSObject> createObjectConstructor(Runtime *runtime) {
Predefined::getSymbolID(Predefined::hasOwn),
ctx,
objectHasOwn,
1);
2);
defineMethod(
runtime,
cons,
Expand Down
1 change: 0 additions & 1 deletion utils/testsuite/testsuite_skiplist.py
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,6 @@
"json-superset",
"let",
"new.target",
"Object.hasOwn",
"regexp-match-indices",
"regexp-named-groups",
"regexp-unicode-property-escapes",
Expand Down

0 comments on commit 98f5028

Please sign in to comment.