|
|
@@ -263,12 +263,14 @@ namespace Js
|
|
|
\
|
|
|
void __declspec(noreturn) JavascriptError::err_method(ScriptContext* scriptContext, int32 hCode, EXCEPINFO* pei) \
|
|
|
{ \
|
|
|
+ if (hCode == VBSERR_InternalError) AssertMsg(false, "Internal error"); \
|
|
|
JavascriptError *pError = create_method(scriptContext); \
|
|
|
SetMessageAndThrowError(scriptContext, pError, hCode, pei); \
|
|
|
} \
|
|
|
\
|
|
|
void __declspec(noreturn) JavascriptError::err_method(ScriptContext* scriptContext, int32 hCode, PCWSTR varName) \
|
|
|
{ \
|
|
|
+ if (hCode == VBSERR_InternalError) AssertMsg(false, "Internal error"); \
|
|
|
JavascriptLibrary *library = scriptContext->GetLibrary(); \
|
|
|
JavascriptError *pError = library->create_method(); \
|
|
|
JavascriptError::SetErrorMessage(pError, hCode, varName, scriptContext); \
|
|
|
@@ -277,6 +279,7 @@ namespace Js
|
|
|
\
|
|
|
void __declspec(noreturn) JavascriptError::err_method(ScriptContext* scriptContext, int32 hCode, JavascriptString* varName) \
|
|
|
{ \
|
|
|
+ if (hCode == VBSERR_InternalError) AssertMsg(false, "Internal error"); \
|
|
|
JavascriptLibrary *library = scriptContext->GetLibrary(); \
|
|
|
JavascriptError *pError = library->create_method(); \
|
|
|
JavascriptError::SetErrorMessage(pError, hCode, varName->GetSz(), scriptContext); \
|
|
|
@@ -285,6 +288,7 @@ namespace Js
|
|
|
\
|
|
|
void __declspec(noreturn) JavascriptError::err_method##Var(ScriptContext* scriptContext, int32 hCode, ...) \
|
|
|
{ \
|
|
|
+ if (hCode == VBSERR_InternalError) AssertMsg(false, "Internal error"); \
|
|
|
JavascriptLibrary *library = scriptContext->GetLibrary(); \
|
|
|
JavascriptError *pError = library->create_method(); \
|
|
|
va_list argList; \
|