throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"The V8 runtime cannot initialize the script engine because a script exception is pending"), false/*executionStarted*/);
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"The V8 runtime cannot perform the requested operation because a script exception is pending"), false/*executionStarted*/);
auto hScript = VERIFY_MAYBE(v8::ScriptCompiler::Compile(m_hContext, &source));
if (hScript.IsEmpty())
{
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"Script compilation failed; no additional information was provided by the V8 runtime"), false/*executionStarted*/);
}
auto hResult = VERIFY_MAYBE(hScript->Run(m_hContext));
if (!evaluate)
{
hResult = GetUndefined();
}
returnExportValue(hResult);
FROM_MAYBE_CATCH
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"The V8 runtime cannot perform the requested operation because a script exception is pending"), EXECUTION_STARTED);
auto hScript = VERIFY_MAYBE(CreateUnboundScript(&source));
if (hScript.IsEmpty())
{
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"Script compilation failed; no additional information was provided by the V8 runtime"), false/*executionStarted*/);
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"The V8 runtime cannot perform the requested operation because a script exception is pending"), EXECUTION_STARTED);
auto hScript = VERIFY_MAYBE(CreateUnboundScript(&source));
if (hScript.IsEmpty())
{
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"Script compilation failed; no additional information was provided by the V8 runtime"), false/*executionStarted*/);
}
cacheBytes.clear();
if (cacheType != V8CacheType::None)
{
auto pCachedData = v8::ScriptCompiler::CreateCodeCache(hScript);
if (pCachedData != nullptr)
{
if ((pCachedData->length > 0) && (pCachedData->data != nullptr))
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"The V8 runtime cannot perform the requested operation because a script exception is pending"), EXECUTION_STARTED);
auto hScript = VERIFY_MAYBE(CreateUnboundScript(&source, v8::ScriptCompiler::kConsumeCodeCache));
if (hScript.IsEmpty())
{
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"Script compilation failed; no additional information was provided by the V8 runtime"), false/*executionStarted*/);
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"The V8 runtime cannot perform the requested operation because a script exception is pending"), EXECUTION_STARTED);
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"The V8 runtime cannot perform the requested operation because a script exception is pending"), EXECUTION_STARTED);
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"The V8 runtime cannot perform the requested operation because a script exception is pending"), EXECUTION_STARTED);
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"The V8 runtime cannot perform the requested operation because a script exception is pending"), false/*executionStarted*/);
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"The V8 runtime cannot perform the requested operation because a script exception is pending"), EXECUTION_STARTED);
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"The V8 runtime cannot perform the requested operation because a script exception is pending"), EXECUTION_STARTED);
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"The V8 runtime cannot perform the requested operation because a script exception is pending"), false/*executionStarted*/);
throwV8Exception(V8Exception::Type::General, m_Name, StdString(L"The V8 runtime cannot perform the requested operation because a script exception is pending"), EXECUTION_STARTED);