diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/bun.js/transpiler.test.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/bun.js/transpiler.test.js b/test/bun.js/transpiler.test.js index 3f668a435..179097144 100644 --- a/test/bun.js/transpiler.test.js +++ b/test/bun.js/transpiler.test.js @@ -1543,6 +1543,10 @@ class Foo { expectPrinted("typeof [null]", '"object"'); expectPrinted("typeof ['boolean']", '"object"'); + expectPrinted('typeof [] === "object"', "true"); + expectPrinted("typeof {foo: 123} === typeof {bar: 123}", "true"); + expectPrinted("typeof {foo: 123} !== typeof 123", "true"); + expectPrinted("undefined === undefined", "true"); expectPrinted("undefined !== undefined", "false"); expectPrinted("undefined == undefined", "true"); |