https://bugs.webkit.org/show_bug.cgi?id=119900
[WebKit-https.git] / Source / JavaScriptCore / jit / JITStubs.cpp
index 7e347a55f0e2bbcace52049ab20ac1d011b09723..9af691b09f646a70df643a7553023ea0433ff2fb 100644 (file)
@@ -2268,6 +2268,11 @@ DEFINE_STUB_FUNCTION(void, op_put_to_scope)
 
     PutPropertySlot slot(codeBlock->isStrictMode());
     scope->methodTable()->put(scope, exec, ident, value, slot);
+    
+    if (exec->vm().exception) {
+        VM_THROW_EXCEPTION_AT_END();
+        return;
+    }
 
     // Covers implicit globals. Since they don't exist until they first execute, we didn't know how to cache them at compile time.
     if (modeAndType.type() == GlobalProperty || modeAndType.type() == GlobalPropertyWithVarInjectionChecks) {