Closed Bug 1763107 Opened 2 years ago Closed 2 years ago

IsPackedArray intrinsic no longer matches C++ function

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: anba, Assigned: anba)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

The intrinsic should match the C++ function. This was changed in bug 1744975 to enable Array.prototype.concat to work on tuples. But that change was actually incorrect, probably caused by a spec bug in the tuples proposal (*).


(*) The tuples proposal changes IsConcatSpreadable to return true for tuples. But it didn't update Array.prototype.concat to correctly work when E isn't an object: the current Array.prototype.concat spec expects that E is an object, which isn't true anymore with the proposed changes to IsConcatSpreadable.

Also update IsConcatSpreadable to match Tuple spec proposal.

Not related to part 1, just further clean-ups.

Depends on D142936

Severity: -- → S3
Priority: -- → P1
Blocks: sm-frontend
No longer blocks: GC
Pushed by andre.bargull@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/d5324c59822b
Part 1: Ensure IsPackedArray intrinsic matches C++ function. r=jandem
https://hg.mozilla.org/integration/autoland/rev/59f5742984f2
Part 2: Remove unused DefineAsIntrinsic enum. r=jandem
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: