mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS: Make ArrayPrototype an Array object
https://tc39.es/ecma262/#sec-properties-of-the-array-prototype-object The Array prototype object: [...] is an Array exotic object and has the internal methods specified for such objects. NOTE: The Array prototype object is specified to be an Array exotic object to ensure compatibility with ECMAScript code that was created prior to the ECMAScript 2015 specification.
This commit is contained in:
committed by
Andreas Kling
parent
84996c6567
commit
a72276407b
@@ -21,6 +21,5 @@ test("arguments that evaluate to true", () => {
|
||||
expect(Array.isArray(new Array())).toBeTrue();
|
||||
expect(Array.isArray(new Array(10))).toBeTrue();
|
||||
expect(Array.isArray(new Array("a", "b", "c"))).toBeTrue();
|
||||
// FIXME: Array.prototype is supposed to be an array!
|
||||
// expect(Array.isArray(Array.prototype)).toBeTrue();
|
||||
expect(Array.isArray(Array.prototype)).toBeTrue();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user