Title: [231015] trunk
Revision
231015
Author
[email protected]
Date
2018-04-25 13:31:25 -0700 (Wed, 25 Apr 2018)

Log Message

Add missing scope release to functionProtoFuncToString
https://bugs.webkit.org/show_bug.cgi?id=184995

Reviewed by Saam Barati.

JSTests:

* stress/function-toString-arrow.js: Added.
(async):

Source/_javascript_Core:

* runtime/FunctionPrototype.cpp:
(JSC::functionProtoFuncToString):

Modified Paths

Added Paths

Diff

Modified: trunk/JSTests/ChangeLog (231014 => 231015)


--- trunk/JSTests/ChangeLog	2018-04-25 20:13:23 UTC (rev 231014)
+++ trunk/JSTests/ChangeLog	2018-04-25 20:31:25 UTC (rev 231015)
@@ -1,3 +1,13 @@
+2018-04-25  Keith Miller  <[email protected]>
+
+        Add missing scope release to functionProtoFuncToString
+        https://bugs.webkit.org/show_bug.cgi?id=184995
+
+        Reviewed by Saam Barati.
+
+        * stress/function-toString-arrow.js: Added.
+        (async):
+
 2018-04-24  Keith Miller  <[email protected]>
 
         fromCharCode is missing some exception checks

Added: trunk/JSTests/stress/function-toString-arrow.js (0 => 231015)


--- trunk/JSTests/stress/function-toString-arrow.js	                        (rev 0)
+++ trunk/JSTests/stress/function-toString-arrow.js	2018-04-25 20:31:25 UTC (rev 231015)
@@ -0,0 +1 @@
+(async () => {}).toString();

Modified: trunk/Source/_javascript_Core/ChangeLog (231014 => 231015)


--- trunk/Source/_javascript_Core/ChangeLog	2018-04-25 20:13:23 UTC (rev 231014)
+++ trunk/Source/_javascript_Core/ChangeLog	2018-04-25 20:31:25 UTC (rev 231015)
@@ -1,3 +1,13 @@
+2018-04-25  Keith Miller  <[email protected]>
+
+        Add missing scope release to functionProtoFuncToString
+        https://bugs.webkit.org/show_bug.cgi?id=184995
+
+        Reviewed by Saam Barati.
+
+        * runtime/FunctionPrototype.cpp:
+        (JSC::functionProtoFuncToString):
+
 2018-04-25  Yusuke Suzuki  <[email protected]>
 
         REGRESSION(r230748) [GTK][ARM] no matching function for call to 'JSC::CCallHelpers::swap(JSC::ARMRegisters::FPRegisterID&, JSC::ARMRegisters::FPRegisterID&)'

Modified: trunk/Source/_javascript_Core/runtime/FunctionPrototype.cpp (231014 => 231015)


--- trunk/Source/_javascript_Core/runtime/FunctionPrototype.cpp	2018-04-25 20:13:23 UTC (rev 231014)
+++ trunk/Source/_javascript_Core/runtime/FunctionPrototype.cpp	2018-04-25 20:31:25 UTC (rev 231015)
@@ -104,6 +104,7 @@
             StringView source = executable->source().provider()->getRange(
                 executable->parametersStartOffset(),
                 executable->parametersStartOffset() + executable->source().length());
+            scope.release();
             return JSValue::encode(jsMakeNontrivialString(exec, functionHeader, function->name(vm), source));
         }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to