mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
LibJS: Add "name" property to functions
This commit is contained in:
parent
d007e8d00f
commit
99be27b4a1
16 changed files with 118 additions and 16 deletions
14
Libraries/LibJS/Tests/Object.js
Normal file
14
Libraries/LibJS/Tests/Object.js
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue