File tree 1 file changed +1
-13
lines changed
test-app/runtime/src/main/cpp
1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 35
35
#ifdef APPLICATION_IN_DEBUG
36
36
#include " NetworkDomainCallbackHandlers.h"
37
37
#include " JsV8InspectorClient.h"
38
- #include " v8_inspector/src/inspector/v8-inspector-platform.h"
39
38
#endif
40
39
41
40
using namespace v8 ;
@@ -467,18 +466,7 @@ void Runtime::ClearStartupData(JNIEnv* env, jobject obj) {
467
466
}
468
467
469
468
static void InitializeV8 () {
470
- Runtime::platform =
471
- #ifdef APPLICATION_IN_DEBUG
472
- // The default V8 platform isn't Chrome DevTools compatible. The frontend uses the
473
- // Runtime.evaluate protocol command with timeout flag for every execution in the console.
474
- // The default platform doesn't implement executing delayed javascript code from a background
475
- // thread. To avoid implementing a full blown scheduler, we use the default platform with a
476
- // timeout=0 flag.
477
- V8InspectorPlatform::CreateDefaultPlatform ();
478
- #else
479
- v8::platform::NewDefaultPlatform ().release ();
480
- #endif
481
-
469
+ Runtime::platform = v8::platform::NewDefaultPlatform ().release ();
482
470
V8::InitializePlatform (Runtime::platform);
483
471
V8::Initialize ();
484
472
}
You can’t perform that action at this time.
0 commit comments