Commit a88a986
committed
Fix Electron bug caused by NODE_OPTIONS
We recently started setting NODE_OPTIONS, since it improves node
interception. Unfortunately, while it does enable some extra
interception with Electron, it also breaks the pause() event we
use to set up the core Electron injection. Interception is
considered to have failed, the debugger never disconnects, and
we don't run the full Electron interception script, just the
JS interception from NODE_OPTIONS.
Instead, we now drop NODE_OPTIONS for Electron, ensuring the
previous behaviour continues. No downside, since we guarantee
that we can inject into it using the debugger anyway, so the
resulting injection should be equivalent.1 parent 31813cd commit a88a986
1 file changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| |||
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
99 | 110 | | |
100 | 111 | | |
101 | 112 | | |
102 | 113 | | |
103 | 114 | | |
104 | 115 | | |
| 116 | + | |
105 | 117 | | |
106 | | - | |
107 | | - | |
108 | 118 | | |
109 | 119 | | |
110 | 120 | | |
| |||
124 | 134 | | |
125 | 135 | | |
126 | 136 | | |
| 137 | + | |
127 | 138 | | |
128 | 139 | | |
129 | 140 | | |
| |||
0 commit comments