Commit a5d0ad1
authored
[turbopack] Add execution tests to demonstrate a bug (vercel#80918)
## Add tests for top level `this` behavior in CJS and ESM modules
### What?
Added two test cases to verify the behavior of `this` in CommonJS and ESM modules:
- CJS test verifies that `this` should be equal to `exports`
- ESM test verifies that `this` should be equal to `globalThis` WHICH IS A BUG, it should be `undefined`1 parent 0cf4491 commit a5d0ad1
2 files changed
+17
-0
lines changedLines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments