diff options
author | 2022-11-08 15:26:29 -0800 | |
---|---|---|
committer | 2022-11-08 15:26:29 -0800 | |
commit | 2077e563b7bc8882ec834a5442aa4feb40760893 (patch) | |
tree | 621945aee73f863f600a62d2fea3a3b28089f5fc /test/bun.js/transpiler.test.js | |
parent | 1604666988b5aa674104d10fbc5d2e86cc04e870 (diff) | |
download | bun-2077e563b7bc8882ec834a5442aa4feb40760893.tar.gz bun-2077e563b7bc8882ec834a5442aa4feb40760893.tar.zst bun-2077e563b7bc8882ec834a5442aa4feb40760893.zip |
Fix failing transpiler tests
Diffstat (limited to 'test/bun.js/transpiler.test.js')
-rw-r--r-- | test/bun.js/transpiler.test.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/bun.js/transpiler.test.js b/test/bun.js/transpiler.test.js index d34b43330..3f668a435 100644 --- a/test/bun.js/transpiler.test.js +++ b/test/bun.js/transpiler.test.js @@ -1536,8 +1536,12 @@ class Foo { expectPrinted("typeof 'abc'", '"string"'); expectPrinted("typeof function() {}", '"function"'); expectPrinted("typeof (() => {})", '"function"'); - expectPrinted("typeof {}", "typeof {}"); - expectPrinted("typeof []", "typeof []"); + expectPrinted("typeof {}", '"object"'); + expectPrinted("typeof {foo: 123}", '"object"'); + expectPrinted("typeof []", '"object"'); + expectPrinted("typeof [0]", '"object"'); + expectPrinted("typeof [null]", '"object"'); + expectPrinted("typeof ['boolean']", '"object"'); expectPrinted("undefined === undefined", "true"); expectPrinted("undefined !== undefined", "false"); |