LibJS: Add "name" property to functions

This commit is contained in:
Linus Groh 2020-05-02 19:18:55 +01:00 committed by Andreas Kling
commit 99be27b4a1
Notes: sideshowbarker 2024-07-19 07:02:13 +09:00
16 changed files with 118 additions and 16 deletions

View file

@ -0,0 +1,14 @@
load("test-common.js");
try {
assert(Object.length === 1);
assert(Object.name === "Object");
assert(Object.prototype.length === undefined);
assert(typeof Object() === "object");
assert(typeof new Object() === "object");
console.log("PASS");
} catch (e) {
console.log("FAIL: " + e);
}