Fix exception scope verification failures in ConstructData.cpp.
authormark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Nov 2016 01:34:20 +0000 (01:34 +0000)
committermark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Nov 2016 01:34:20 +0000 (01:34 +0000)
https://bugs.webkit.org/show_bug.cgi?id=164976

Reviewed by Darin Adler.

* runtime/ConstructData.cpp:
(JSC::construct):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208937 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/ConstructData.cpp

index 28c2b7730a95c52ded607f5908838d7d2cdd8b8e..9bfaa5ace8454b4c85643fe6d46b76ead6e89726 100644 (file)
@@ -1,3 +1,13 @@
+2016-11-20  Mark Lam  <mark.lam@apple.com>
+
+        Fix exception scope verification failures in ConstructData.cpp.
+        https://bugs.webkit.org/show_bug.cgi?id=164976
+
+        Reviewed by Darin Adler.
+
+        * runtime/ConstructData.cpp:
+        (JSC::construct):
+
 2016-11-20  Mark Lam  <mark.lam@apple.com>
 
         Fix exception scope verification failures in CommonSlowPaths.cpp/h.
index 4636e836c4b011d7126bd42a7137744d016e9ceb..94e672f7afde24048e889b85a498d0db964bba89 100644 (file)
@@ -44,6 +44,7 @@ JSObject* construct(ExecState* exec, JSValue constructorObject, const ArgList& a
     if (constructType == ConstructType::None)
         return throwTypeError(exec, scope, errorMessage);
 
+    scope.release();
     return construct(exec, constructorObject, constructType, constructData, args, constructorObject);
 }