| Index: src/FileSystemJsObject.cpp |
| =================================================================== |
| --- a/src/FileSystemJsObject.cpp |
| +++ b/src/FileSystemJsObject.cpp |
| @@ -183,17 +183,18 @@ |
| const auto contentEnd = content.cend(); |
| auto stringBegin = SkipEndOfLine(content.begin(), contentEnd); |
| do |
| { |
| auto stringEnd = AdvanceToEndOfLine(stringBegin, contentEnd); |
| auto jsLine = Utils::StringBufferToV8String(jsEngine->GetIsolate(), StringBuffer(stringBegin, stringEnd)).As<v8::Value>(); |
| processFunc->Call(globalContext, 1, &jsLine); |
| if (tryCatch.HasCaught()) |
| - throw JsError(tryCatch.Exception(), tryCatch.Message()); |
| + throw JsError(jsEngine->GetIsolate(), tryCatch.Exception(), |
| + tryCatch.Message()); |
| stringBegin = SkipEndOfLine(stringEnd, contentEnd); |
| } while (stringBegin != contentEnd); |
| jsEngine->GetJsValues(weakData->weakResolveCallback)[0].Call(); |
| }, [weakData](const std::string& error) |
| { |
| if (error.empty()) |
| return; |
| auto jsEngine = weakData->weakJsEngine.lock(); |