mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 12:12:16 +03:00
82bd8070cb
**Description:** For following code ```js var NaN = 1 console.log(NaN) ``` Result would be |Envirnoment|Result| |-|-| |Non strict script(browser, nodejs repl)|NaN| |Non strict script(nodejs script)|1| |Strict script(browser, nodejs repl)|runtime error| |Strict script(nodejs script)|1| |ESM|1| So SWC choose to behave like browser in script mode and confirm to esm standard. **Related issue:** - Closes #8465 |
||
---|---|---|
.. | ||
input | ||
output |