File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -169,18 +169,24 @@ V8Debug.prototype._unwrapDebugCommandProcessor = function() {
169
169
V8Debug . prototype . register =
170
170
V8Debug . prototype . registerCommand = function ( name , func ) {
171
171
var proto = this . _DebugCommandProcessor ;
172
+ if ( ! proto ) return ;
173
+
172
174
proto . extendedProcessDebugJSONRequestHandles_ [ name ] = func ;
173
175
} ;
174
176
175
177
V8Debug . prototype . unregister =
176
178
V8Debug . prototype . unregisterCommand = function ( name , func ) {
177
179
var proto = this . _DebugCommandProcessor ;
180
+ if ( ! proto ) return ;
181
+
178
182
delete proto . extendedProcessDebugJSONRequestHandles_ [ name ] ;
179
183
} ;
180
184
181
185
V8Debug . prototype . registerAsync =
182
186
V8Debug . prototype . registerAsyncCommand = function ( name , func ) {
183
187
var proto = this . _DebugCommandProcessor ;
188
+ if ( ! proto ) return ;
189
+
184
190
proto . extendedProcessDebugJSONRequestAsyncHandles_ [ name ] = func ;
185
191
} ;
186
192
You can’t perform that action at this time.
0 commit comments