Skip to content

Commit 3600163

Browse files
petervanderbekenmoz-wptsync-bot
authored andcommitted
Use correct order when defining length/name/prototype on legacy factory functions.
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 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1887721 gecko-commit: 0594801ef8e281f5be66076d27a72c5c8c9496e9 gecko-reviewers: saschanaz
1 parent d896bcb commit 3600163

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"use strict";
2+
3+
test(() => {
4+
const ownPropKeys = Reflect.ownKeys(Image).slice(0, 3);
5+
assert_array_equals(ownPropKeys, ["length", "name", "prototype"]);
6+
}, 'Legacy factory function property enumeration order of "length", "name", and "prototype"');

0 commit comments

Comments
 (0)