mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 07:02:28 +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 |
||
---|---|---|
.. | ||
integration/react | ||
pass | ||
fixture.rs | ||
package.json |