Closed
Bug 1148652
Opened 10 years ago
Closed 10 years ago
Make NativeDefineProperty (more) compliant for arrays, TypedArray views, and arguments objects
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: jorendorff, Assigned: jorendorff)
References
Details
Attachments
(3 files)
12.60 KB,
patch
|
efaust
:
review+
|
Details | Diff | Splinter Review |
6.51 KB,
patch
|
efaust
:
review+
|
Details | Diff | Splinter Review |
1.75 KB,
patch
|
efaust
:
review+
|
Details | Diff | Splinter Review |
These three object types are implemented as "native" in SM, but classified as "exotic" in the standard because each has a custom [[DefineOwnProperty]] internal method:
* Arrays: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array-exotic-objects-defineownproperty-p-desc
* Arguments: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-arguments-exotic-objects-defineownproperty-p-desc
* TypedArrays: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-integer-indexed-exotic-objects-defineownproperty-p-desc
We partially implement all the special cases in StandardDefineProperty. The goal here is to achieve the same level of compliance in NativeDefineProperty.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8585018 -
Flags: review?(efaustbmo)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jorendorff
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8585019 -
Flags: review?(efaustbmo)
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8585020 -
Flags: review?(efaustbmo)
Comment 5•10 years ago
|
||
Comment on attachment 8585018 [details] [diff] [review]
part 1 - Move array-specific special cases to the top of NativeDefineProperty; update ArraySetLength to be able to cope with incomplete attrs
Review of attachment 8585018 [details] [diff] [review]:
-----------------------------------------------------------------
Nice.
Attachment #8585018 -
Flags: review?(efaustbmo) → review+
Updated•10 years ago
|
Attachment #8585019 -
Flags: review?(efaustbmo) → review+
Comment 6•10 years ago
|
||
Comment on attachment 8585020 [details] [diff] [review]
part 3 - Mark arguments.length as overridden when it is redefined via the C API. try: -b do -p linux64,linux64-st-an,macosx64,win32 -u all[x64,10.6,Windows XP] -t none
Review of attachment 8585020 [details] [diff] [review]:
-----------------------------------------------------------------
Nice catch.
Attachment #8585020 -
Flags: review?(efaustbmo) → review+
Assignee | ||
Comment 7•10 years ago
|
||
(In reply to Eric Faust [:efaust] from comment #6)
> part 3 - Mark arguments.length as overridden when it is redefined via the C API.
>
> Nice catch.
Oh, I didn't catch this. Not a chance.
Our test suite did.
Assignee | ||
Comment 8•10 years ago
|
||
Backed out (along with every other patch from that massive push) in https://hg.mozilla.org/integration/mozilla-inbound/rev/386c8b5b73c0 for talos other timeouts:
https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=3fc49391f7fe&filter-searchStr=talos oth
Flags: needinfo?(jorendorff)
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(jorendorff)
Assignee | ||
Comment 10•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/68fa62199799
https://hg.mozilla.org/mozilla-central/rev/10f6a2d81358
https://hg.mozilla.org/mozilla-central/rev/5147517c8a18
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in
before you can comment on or make changes to this bug.
Description
•