Closed Bug 1686492 Opened 3 years ago Closed 3 years ago

Implement "Give %TypedArray% methods explicit algorithms" spec PR

Categories

(Core :: JavaScript: Standard Library, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: anba, Assigned: anba)

References

()

Details

Attachments

(15 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

Implement the changes from https://github.com/tc39/ecma262/pull/2221.

Updates the step references and renames the T variable to thisArg to match
the current spec. Otherwise no change in behaviour.

Depends on D101611

Similar changes as in part 3:

Updates the step references and renames the T variable to thisArg to match
the current spec. Otherwise no change in behaviour.

Depends on D101612

Similar changes as in part 3:

Updates the step references and renames the T variable to thisArg to match
the current spec. Otherwise no change in behaviour.

Depends on D101613

Similar changes as in part 3:

Updates the step references and renames the T variable to thisArg to match
the current spec. Otherwise no change in behaviour.

Depends on D101614

Similar changes as in part 3:

Updates the step references and adds an assertion which was added to the spec.
Otherwise no change in behaviour.

Depends on D101615

Updates the step references and adds an assertion which was added to the spec.

The updated spec wants us to perform a HasProperty check during the loop in
step 11.a. We can avoid this operation when we instead re-read the TypedArray
length after steps 5-6.

Depends on D101616

Updates the step references.

The updated spec wants us to perform a comparison against undefined during the
loop in step 8.c. We can avoid this operation when we instead re-read the
TypedArray length after steps 4-5.

Depends on D101617

Similar to the changes in part 8:

Updates the step references.

The updated spec wants us to perform a HasProperty check during the loop in
step 9.a. We can avoid this operation when we instead re-read the TypedArray
length after step 5.

Depends on D101618

Similar changes as in part 3:

Updates the step references and renames the T variable to thisArg to match
the current spec. Otherwise no change in behaviour.

Depends on D101620

Similar changes as in part 3:

Updates the step references and renames the T variable to thisArg to match
the current spec. Otherwise no change in behaviour.

Depends on D101621

Similar changes as in part 3:

Updates the step references. Otherwise no change in behaviour.

Depends on D101622

Similar changes as in part 3:

Updates the step references and renames the T variable to thisArg to match
the current spec. Otherwise no change in behaviour.

Depends on D101623

Pushed by btara@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2ab8ccb6f156
Part 1: Update test262. r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/a31a4f8b7b7b
Part 2: Update test262 exclusion list. r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/af449dd0f569
Part 3: Update TypedArray.prototype.every(). r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/d22011319413
Part 4: Update TypedArray.prototype.find(). r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/a62daed85eba
Part 5: Update TypedArray.prototype.findIndex(). r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/ab607b7aff5e
Part 6: Update TypedArray.prototype.forEach(). r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/d58e9af14665
Part 7: Update TypedArray.prototype.includes(). r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/dcfc69d91d0c
Part 8: Update TypedArray.prototype.indexOf(). r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/9d36931d65ef
Part 9: Update TypedArray.prototype.join(). r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/21d8458092c3
Part 10: Update TypedArray.prototype.lastIndexOf(). r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/60dee0bedf76
Part 11: Update TypedArray.prototype.reduce(). r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/b582661145b2
Part 12: Update TypedArray.prototype.reduceRight(). r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/ae8abd27947d
Part 13: Update TypedArray.prototype.reverse(). r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/d4563c204dc1
Part 14: Update TypedArray.prototype.some(). r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/14223d174bac
Part 15: Enable now passing test262 tests. r=mgaudet
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: