1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 19:15:06 +00:00

LibJS: Implement abstract equality and inequality

This commit is contained in:
0xtechnobabble 2020-03-16 00:23:38 +02:00 committed by Andreas Kling
parent 4d22a142f7
commit dfbaa8e543
6 changed files with 64 additions and 2 deletions

View file

@ -0,0 +1,12 @@
const object = {};
print(true == 1);
print(null == undefined);
print("12" == 12);
print(1 + "12");
print(12 / "12" == true);
print(2 * "12");
print(~"24");
print(~true);
print(2*2 + "4");
print(object == "[object Object]");