mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-28 20:04:14 +00:00
13 lines
363 B
JavaScript
13 lines
363 B
JavaScript
|
|
load("test-common.js");
|
||
|
|
|
||
|
|
try {
|
||
|
|
// Note that these will give different results in the REPL due to parsing behavior.
|
||
|
|
assert([] + [] === "");
|
||
|
|
assert([] + {} === "[object Object]");
|
||
|
|
assert({} + {} === "[object Object][object Object]");
|
||
|
|
assert({} + [] === "[object Object]");
|
||
|
|
console.log("PASS");
|
||
|
|
} catch (e) {
|
||
|
|
console.log("FAIL: " + e);
|
||
|
|
}
|