Set "name" property for all anonymous functions
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox70 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
Details
Attachments
(7 files)
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
Implement the spec changes from https://github.com/tc39/ecma262/pull/1490.
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
This ensures an empty string is used for the name and actually also matches
the spec since https://github.com/tc39/ecma402/pull/208.
| Assignee | ||
Comment 2•6 years ago
|
||
Default the "name" property of anonymous class expressions to the empty string
by removing the special case in JSFunction::infallibleGetUnresolvedName().
With that change applied, infallibleGetUnresolvedName() never returns nullptr,
so we can remove nullptr handling in its callers. And additionally
JSFunction::getUnresolvedName() can be changed back to use MutableHandleValue
as its parameter, which also (re-)aligns the function with getUnresolvedLength().
Depends on D42153
| Assignee | ||
Comment 3•6 years ago
|
||
An absent name and an empty string as the inferred name are now
indistinguishable, so we can remove the special case for empty strings in
ObjectEmitter.
Depends on D42154
| Assignee | ||
Comment 4•6 years ago
|
||
Depends on D42155
| Assignee | ||
Comment 5•6 years ago
|
||
Depends on D42156
| Assignee | ||
Comment 6•6 years ago
|
||
Update test262 to get the changes from https://github.com/tc39/test262/pull/2299.
| Assignee | ||
Comment 7•6 years ago
|
||
| Assignee | ||
Comment 8•6 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=5dc4835f226122a4b47ba1da6671c3c613066ad1
Pushed by nbeleuzu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5bc09a0dde11
Part 7: Update test262 exclusions. r=khyperia
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/17c3ae6d4a96
https://hg.mozilla.org/mozilla-central/rev/e6d2c7668965
https://hg.mozilla.org/mozilla-central/rev/e0ffbccc9edc
https://hg.mozilla.org/mozilla-central/rev/4d341c6816c2
https://hg.mozilla.org/mozilla-central/rev/f53ba6ebc0b7
https://hg.mozilla.org/mozilla-central/rev/bc2a756c4554
https://hg.mozilla.org/mozilla-central/rev/f5da79194d06
Description
•