mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
Add a couple more tests for typeof
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user