Fix property enumeration order of built-in properties (#4761)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
This commit is contained in:
Zoltan Herczeg authored and GitHub committed 2021-09-13 15:32:14 +02:00
1 parent 2c2539c6b8
commit 723b26392d
13 files changed
+409 -160

No files matched your search

@@ -18,6 +18,5 @@ assert (Object.isSealed(hasProp) === false);
var keys = Object.getOwnPropertyNames(hasProp);
assert (keys.length === 2);
/* Note: the order is currently wrong. */
assert (keys[0] === "name");
assert (keys[1] === "length");
assert (keys[0] === "length");
assert (keys[1] === "name");