Re: [v8-users] Crash (v8::base::Abort()) if a script contains errors.

2019-08-05 Thread Jakob Kummerow
While you haven't posted the stack trace, I'm pretty sure it's not V8 that's crashing, but your code, specifically: v8::Local v = (...).ToLocalChecked(); > if (v.IsEmpty()) { A v8::Local is never empty (unless it's uninitialized). The v8::MaybeLocal that you get back from script->Run() can be

[v8-users] Crash (v8::base::Abort()) if a script contains errors.

2019-07-17 Thread Tsvetan Stefanovski
Hello, Why could V8 be crashing trying to run a script containing errors? Below is how I run the compilation and the script itself *// const char* src comes as argument * *v8::Isolate* isolate = v8::Isolate::GetCurrent();* *v8::HandleScope hScope(isolate);* *v8::Local context =