Commit 2fd83f92 authored by jan.koester's avatar jan.koester
Browse files

test

parent 1bace7b7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -112,8 +112,8 @@ public:
        v8::Isolate::Scope isolateScope(isolate);
        v8::HandleScope handleScope(isolate);
        v8::Context::Scope contextScope(context);
        node::async_context asyncContext{0, 0};
        v8::TryCatch tryCatch(isolate);
        node::AsyncResource asyncResource(isolate, context->Global(), "blogi-editor-embedded");

        auto fn = runFunction_.Get(isolate);
        v8::Local<v8::Value> argv[2] = {
@@ -121,7 +121,7 @@ public:
            v8::String::NewFromUtf8(isolate, resPath.c_str()).ToLocalChecked()
        };

        if (node::MakeCallback(isolate, context->Global(), fn, 2, argv, asyncContext).IsEmpty()) {
        if (asyncResource.MakeCallback(fn, 2, argv).IsEmpty()) {
          if (tryCatch.HasCaught()) {
            v8::String::Utf8Value exceptionUtf8(isolate, tryCatch.Exception());
            const char *msg = *exceptionUtf8 ? *exceptionUtf8 : "unknown JS exception";