TypedArray.includes() doesn't work in Nightly
Categories
(Core :: JavaScript Engine, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr128 | --- | unaffected |
| firefox134 | --- | unaffected |
| firefox135 | --- | unaffected |
| firefox136 | --- | fixed |
People
(Reporter: jardanejedly, Assigned: jandem)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0 BigDickEnergy
Steps to reproduce:
I ran this code in console: new Uint32Array([0xffff0000]).includes(0xffff0000).
The version of Firefox is: nightly 136.0a1. The release channel is unaffected.
Actual results:
returned false
Expected results:
Should have returned true
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Console' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•1 year ago
|
Comment 2•1 year ago
|
||
:anba, since you are the author of the regressor, bug 1941001, could you take a look?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 3•1 year ago
|
||
Thanks for the report!
This is likely caused by the NumberEqualsInt32 check here.
Updated•1 year ago
|
| Assignee | ||
Comment 4•1 year ago
|
||
Using NumberEqualsInt64 may be the simplest fix. anba, I can post a patch for that if you're not working on something better.
A bit surprising that test262 doesn't have any tests for indexOf/includes/lastIndexOf on Uint32Array with a large uint32 value.
Comment 5•1 year ago
|
||
Yeah, using NumberEqualsInt64 seems to be the easiest fix for now.
| Assignee | ||
Comment 6•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Description
•