forked from mirrors/gecko-dev
Implements https://github.com/whatwg/webidl/pull/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
6 lines
250 B
JavaScript
6 lines
250 B
JavaScript
"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"');
|