Commit 0fb91ac
src: disallow JS execution inside FreeEnvironment
This addresses a TODO comment, and aligns the behavior between
worker threads and the main thread.
The primary motivation for this change is to more strictly enforce
the invariant that no JS runs after the `'exit'` event is emitted.
PR-URL: #33874
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>1 parent 409fdba commit 0fb91acCopy full SHA for 0fb91ac
File tree
Expand file treeCollapse file tree
3 files changed
+21
-6
lines changedOpen diff view settings
Filter options
- src
- api
- test/addons/worker-addon
Expand file treeCollapse file tree
3 files changed
+21
-6
lines changedOpen diff view settings
Collapse file
+6-2Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
| 30 | + |
30 | 31 | |
31 | 32 | |
32 | 33 | |
| ||
378 | 379 | |
379 | 380 | |
380 | 381 | |
| 382 | + |
| 383 | + |
381 | 384 | |
382 | | - |
383 | | - |
| 385 | + |
384 | 386 | |
| 387 | + |
| 388 | + |
385 | 389 | |
386 | 390 | |
387 | 391 | |
|
Collapse file
-4Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
274 | 274 | |
275 | 275 | |
276 | 276 | |
277 | | - |
278 | | - |
279 | | - |
280 | | - |
281 | 277 | |
282 | 278 | |
283 | 279 | |
|
Collapse file
test/addons/worker-addon/binding.cc
Copy file name to clipboardExpand all lines: test/addons/worker-addon/binding.cc+15Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
9 | 10 | |
10 | 11 | |
11 | 12 | |
| 13 | + |
12 | 14 | |
| 15 | + |
13 | 16 | |
14 | 17 | |
15 | 18 | |
| ||
31 | 34 | |
32 | 35 | |
33 | 36 | |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
34 | 49 | |
35 | 50 | |
36 | 51 | |
|
0 commit comments