| 12795 | } |
| 12796 | |
| 12797 | ResultType Script::RuntimeError(LPCTSTR aErrorText, LPCTSTR aExtraInfo, ResultType aErrorType, Line *aLine, Object *aPrototype) |
| 12798 | { |
| 12799 | ASSERT(aErrorText); |
| 12800 | if (!aExtraInfo) |
| 12801 | aExtraInfo = _T(""); |
| 12802 | |
| 12803 | if (g->ExcptMode == EXCPTMODE_LINE_WORKAROUND && mCurrLine) |
| 12804 | aLine = mCurrLine; |
| 12805 | |
| 12806 | if ((g->ExcptMode || mOnError.Count() || aPrototype && aPrototype->HasOwnProps()) && aErrorType != WARN) |
| 12807 | return ThrowRuntimeException(aErrorText, aExtraInfo, aLine, aErrorType, aPrototype); |
| 12808 | |
| 12809 | return ShowError(aErrorText, aErrorType, aExtraInfo, aLine); |
| 12810 | } |
| 12811 | |
| 12812 | ResultType Script::ShowError(LPCTSTR aErrorText, ResultType aErrorType, LPCTSTR aExtraInfo, Line *aLine) |
| 12813 | { |
no test coverage detected