mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 18:47:15 +02: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
Notes:
sideshowbarker
2024-07-18 21:58:30 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/a72276407ba Pull-request: https://github.com/SerenityOS/serenity/pull/5493
@@ -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