-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1887721 - Use correct order when defining length/name/prototype o…
…n legacy factory functions. r=saschanaz Implements whatwg/webidl#914 for legacy factory functions. https://bugzilla.mozilla.org/show_bug.cgi?id=1629803 is the bug that would fix this in SpiderMonkey, working around that for now. Differential Revision: https://phabricator.services.mozilla.com/D205805
- Loading branch information
1 parent
93d0f5c
commit a7f54a9
Showing
2 changed files
with
38 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...form/tests/webidl/ecmascript-binding/legacy-factory-function-builtin-properties.window.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"use strict"; | ||
|
||
test(() => { | ||
const ownPropKeys = Reflect.ownKeys(Image).slice(0, 3); | ||
assert_array_equals(ownPropKeys, ["length", "name", "prototype"]); | ||
}, 'Legacy factory function property enumeration order of "length", "name", and "prototype"'); |