diff --git a/base/bundle.h b/base/bundle.h index 952f8a5..911c59f 100644 --- a/base/bundle.h +++ b/base/bundle.h @@ -31,7 +31,7 @@ namespace openrasp { inline v8::Local NewV8String(v8::Isolate* isolate, const char* str, size_t len = -1) { - return v8::String::NewFromUtf8(isolate, str, v8::NewStringType::kNormal, len).ToLocalChecked(); + return v8::String::NewFromUtf8(isolate, str, v8::NewStringType::kNormal, len).FromMaybe(v8::Local()); } inline v8::Local NewV8String(v8::Isolate* isolate, const std::string& str) {