swc/crates/swc_node_bundler/tests/pass
Austaras 82bd8070cb
fix(es/resolver): Resolve top-level undefined, NaN, and Infinity correctly (#8471)
**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
2024-01-04 04:24:14 +00:00
..
alias chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
basic chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
circular chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
cjs fix(es/codegen): Remove extra spaces in AssignPatProp and KeyValuePatProp (#7488) 2023-06-07 05:08:35 +00:00
deno-001 fix(es/codegen): Remove extra spaces in AssignPatProp and KeyValuePatProp (#7488) 2023-06-07 05:08:35 +00:00
deno-002/.full chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
drop-unused chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
dynamic-import/namespace/dynamic-key chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
dynmaic-imports/issue-1112/simple chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
export chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
export-all chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
export-star-namespace/issue-1109 chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
helpers/simple fix(es/helpers): Remove unnecessary parameters in helper_expr! macro (#7296) 2023-04-20 08:26:34 +00:00
import chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
import-with-export/simple-1 chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
issue-1138 fix(es/codegen): Remove extra spaces in AssignPatProp and KeyValuePatProp (#7488) 2023-06-07 05:08:35 +00:00
issue-1139 chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
issue-1225 chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
issue-1328/case1 fix(es/helpers): Remove unnecessary parameters in helper_expr! macro (#7296) 2023-04-20 08:26:34 +00:00
issue-1338 chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
issue-1533/case1 feat(es/minifier): Support cycles in DCE (#5715) 2022-09-03 04:41:54 +00:00
issue-1756/input chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
issue-2124/named-export perf(es/hygiene): Make hygiene faster (#4952) 2022-06-15 14:36:57 +00:00
merge chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
multi-entry chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
node-modules fix(es/codegen): Remove extra spaces in AssignPatProp and KeyValuePatProp (#7488) 2023-06-07 05:08:35 +00:00
pr-1105 fix(es/codegen): Remove extra spaces in AssignPatProp and KeyValuePatProp (#7488) 2023-06-07 05:08:35 +00:00
reexport chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
regenerator/1 fix(es/helpers): Remove unnecessary parameters in helper_expr! macro (#7296) 2023-04-20 08:26:34 +00:00
resolve-name-fix fix(es/resolver): Resolve top-level undefined, NaN, and Infinity correctly (#8471) 2024-01-04 04:24:14 +00:00
swcrc/jsx/issue-884 chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
transitive chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
tree-shaking chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
.swcrc chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00