@@ -299,6 +299,10 @@ class UtilsExtension : public IsolateData::SetupGlobalTask {
299299    utils->Set (ToV8String (isolate, " setLogConsoleApiMessageCalls" 
300300               v8::FunctionTemplate::New (
301301                   isolate, &UtilsExtension::SetLogConsoleApiMessageCalls));
302+     utils->Set (
303+         ToV8String (isolate, " setLogMaxAsyncCallStackDepthChanged" 
304+         v8::FunctionTemplate::New (
305+             isolate, &UtilsExtension::SetLogMaxAsyncCallStackDepthChanged));
302306    utils->Set (ToV8String (isolate, " createContextGroup" 
303307               v8::FunctionTemplate::New (isolate,
304308                                         &UtilsExtension::CreateContextGroup));
@@ -486,6 +490,17 @@ class UtilsExtension : public IsolateData::SetupGlobalTask {
486490        args[0 ].As <v8::Boolean>()->Value ());
487491  }
488492
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+ 
489504  static  void  CreateContextGroup (
490505      const  v8::FunctionCallbackInfo<v8::Value>& args) {
491506    if  (args.Length () != 0 ) {
0 commit comments