-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix JSI
isArray
method to match JS Array.isArray
Summary: There is currently an assumption that JSI arrays are always `vm::JSArrays`, and thus JSI method `isArray` only return true if it is an `vm::JSArray` . However, the JSI spec states `isArray` should follow JS `Array.isArray`. This diff fixes this and treats `JSI::Array` as normal objects. Reviewed By: tmikov Differential Revision: D67408956 fbshipit-source-id: 1b61dd500b2b3bdab4771663672c375d7ed1b7d6
- Loading branch information
1 parent
bedb6ca
commit b2882e4
Showing
2 changed files
with
46 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters