WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
173157
[DFG] Add ArrayIncludes intrinsic
https://bugs.webkit.org/show_bug.cgi?id=173157
Summary
[DFG] Add ArrayIncludes intrinsic
Yusuke Suzuki
Reported
2017-06-09 06:12:33 PDT
We can implement ArrayIncludes intrinsic by using ArrayIndexOf intrinsic.
Attachments
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2017-06-13 10:00:49 PDT
No, we can share large part of ArrayIndexOf code. However, ArrayIncludes slightly different from ArrayIndexOf.
https://tc39.github.io/ecma262/#sec-array.prototype.includes
NOTE: The includes method intentionally differs from the similar indexOf method in two ways. First, it uses the SameValueZero algorithm, instead of Strict Equality Comparison, allowing it to detect NaN array elements. Second, it does not skip missing array elements, instead treating them as undefined.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug