File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,14 @@ namespace nodex {
125
125
v8::Debug::CancelDebugBreak (info.GetIsolate ());
126
126
}
127
127
128
+ static NAN_METHOD (SetLiveEditEnabled) {
129
+ #if (NODE_MODULE_VERSION > 45)
130
+ Local<Boolean> _enabled = CHK (To<Boolean>(info[0 ]));
131
+ bool enabled = _enabled->Value ();
132
+ v8::Debug::SetLiveEditEnabled (info.GetIsolate (), enabled);
133
+ #endif
134
+ }
135
+
128
136
private:
129
137
Debug () {}
130
138
~Debug () {}
@@ -143,6 +151,7 @@ namespace nodex {
143
151
SetMethod (target, " shareSecurityToken" , Debug::ShareSecurityToken);
144
152
SetMethod (target, " unshareSecurityToken" , Debug::UnshareSecurityToken);
145
153
SetMethod (target, " setPauseOnNextStatement" , Debug::SetPauseOnNextStatement);
154
+ SetMethod (target, " setLiveEditEnabled" , Debug::SetLiveEditEnabled);
146
155
}
147
156
148
157
NODE_MODULE (debug, Initialize)
Original file line number Diff line number Diff line change @@ -177,6 +177,10 @@ V8Debug.prototype.setPauseOnNextStatement = function(pause) {
177
177
binding . setPauseOnNextStatement ( pause === true ) ;
178
178
} ;
179
179
180
+ V8Debug . prototype . setLiveEditEnabled = function ( enabled ) {
181
+ binding . setLiveEditEnabled ( enabled === true ) ;
182
+ } ;
183
+
180
184
V8Debug . prototype . scripts = function ( ) {
181
185
return this . _Debug . scripts ( ) ;
182
186
} ;
You can’t perform that action at this time.
0 commit comments