@@ -299,6 +299,10 @@ class UtilsExtension : public IsolateData::SetupGlobalTask {
299
299
utils->Set (ToV8String (isolate, " setLogConsoleApiMessageCalls" ),
300
300
v8::FunctionTemplate::New (
301
301
isolate, &UtilsExtension::SetLogConsoleApiMessageCalls));
302
+ utils->Set (
303
+ ToV8String (isolate, " setLogMaxAsyncCallStackDepthChanged" ),
304
+ v8::FunctionTemplate::New (
305
+ isolate, &UtilsExtension::SetLogMaxAsyncCallStackDepthChanged));
302
306
utils->Set (ToV8String (isolate, " createContextGroup" ),
303
307
v8::FunctionTemplate::New (isolate,
304
308
&UtilsExtension::CreateContextGroup));
@@ -486,6 +490,17 @@ class UtilsExtension : public IsolateData::SetupGlobalTask {
486
490
args[0 ].As <v8::Boolean >()->Value ());
487
491
}
488
492
493
+ static void SetLogMaxAsyncCallStackDepthChanged (
494
+ const v8::FunctionCallbackInfo<v8::Value>& args) {
495
+ if (args.Length () != 1 || !args[0 ]->IsBoolean ()) {
496
+ fprintf (stderr,
497
+ " Internal error: setLogMaxAsyncCallStackDepthChanged(bool)." );
498
+ Exit ();
499
+ }
500
+ backend_runner_->data ()->SetLogMaxAsyncCallStackDepthChanged (
501
+ args[0 ].As <v8::Boolean >()->Value ());
502
+ }
503
+
489
504
static void CreateContextGroup (
490
505
const v8::FunctionCallbackInfo<v8::Value>& args) {
491
506
if (args.Length () != 0 ) {
0 commit comments