File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -55,16 +55,14 @@ void ExceptionCheck::SetHandledExceptionType(ExceptionType e)
55
55
{
56
56
Assert ((e & ExceptionType_DisableCheck) == 0 || e == ExceptionType_DisableCheck);
57
57
Assert (IsEmpty ());
58
- #if DBG
59
- if (!(e == ExceptionType_None ||
60
- e == ExceptionType_DisableCheck ||
61
- !JsUtil::ExternalApi::IsScriptActiveOnCurrentThreadContext () ||
62
- (e & ExceptionType_JavascriptException) == ExceptionType_JavascriptException ||
63
- e == ExceptionType_HasStackProbe))
64
- {
65
- Assert (false );
66
- }
67
- #endif
58
+
59
+ // If script is active, we don't want any scope to try to handle OOM on its own, just let script handle it.
60
+ Assert (e == ExceptionType_None ||
61
+ e == ExceptionType_DisableCheck ||
62
+ !JsUtil::ExternalApi::IsScriptActiveOnCurrentThreadContext () ||
63
+ (e & ExceptionType_JavascriptException) == ExceptionType_JavascriptException ||
64
+ e == ExceptionType_HasStackProbe);
65
+
68
66
data.handledExceptionType = e;
69
67
}
70
68
You can’t perform that action at this time.
0 commit comments