Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
Commitdcbf88f
lib: account for cwd access from snapshot serialization cb
Functions registered with `addSerializeCallback()` can access and call`process.cwd()`.b7d836e accounted for the fact that it isnecessary to reset the cwd cache after the snapshot builder script hasrun, but did not account for possible accesses from serializationcallbacks. To properly account for these, add a deserializationcallback as well.As a related drive-by fix, also mention the execution order ofcallbacks in the documentation.Refs:#49684PR-URL:#51901Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>Reviewed-By: Michaël Zasso <targos@protonmail.com>Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>1 parentda8fa48 commitdcbf88f
File tree
3 files changed
+16
-0
lines changed- doc/api
- lib/internal/bootstrap/switches
- test/fixtures/snapshot
3 files changed
+16
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1021 | 1021 |
| |
1022 | 1022 |
| |
1023 | 1023 |
| |
| 1024 | + | |
| 1025 | + | |
1024 | 1026 |
| |
1025 | 1027 |
| |
1026 | 1028 |
| |
| |||
1040 | 1042 |
| |
1041 | 1043 |
| |
1042 | 1044 |
| |
| 1045 | + | |
| 1046 | + | |
1043 | 1047 |
| |
1044 | 1048 |
| |
1045 | 1049 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
| |||
114 | 115 |
| |
115 | 116 |
| |
116 | 117 |
| |
| 118 | + | |
| 119 | + | |
117 | 120 |
| |
118 | 121 |
| |
| 122 | + | |
| 123 | + | |
| 124 | + | |
119 | 125 |
| |
120 | 126 |
| |
121 | 127 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
| 2 | + | |
2 | 3 |
| |
3 | 4 |
| |
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 |
| |
9 | 15 |
| |
10 | 16 |
|
0 commit comments
Comments
(0)