diff options
Diffstat (limited to 'Libraries/LibJS/Tests/Object.js')
-rw-r--r-- | Libraries/LibJS/Tests/Object.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Libraries/LibJS/Tests/Object.js b/Libraries/LibJS/Tests/Object.js new file mode 100644 index 0000000000..b51e0a4abf --- /dev/null +++ b/Libraries/LibJS/Tests/Object.js @@ -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); +} |