mirror of
https://github.com/swc-project/swc.git
synced 2024-11-27 13:38:33 +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 |
||
---|---|---|
.. | ||
resolver | ||
ts-resolver | ||
fixer_test262.rs | ||
fixture.rs | ||
par_explode.rs | ||
par.rs | ||
ts_resolver.rs |