Title: [231772] trunk/Source/_javascript_Core
Revision
231772
Author
commit-qu...@webkit.org
Date
2018-05-14 15:38:26 -0700 (Mon, 14 May 2018)

Log Message

[INTL] Handle error in defineProperty for supported locales length
https://bugs.webkit.org/show_bug.cgi?id=185623

Patch by Andy VanWagoner <andy@vanwagoner.family> on 2018-05-14
Reviewed by Saam Barati.

Adds the missing RETURN_IF_EXCEPTION after defineOwnProperty for the
length of the supported locales array.

* runtime/IntlObject.cpp:
(JSC::supportedLocales):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (231771 => 231772)


--- trunk/Source/_javascript_Core/ChangeLog	2018-05-14 22:31:40 UTC (rev 231771)
+++ trunk/Source/_javascript_Core/ChangeLog	2018-05-14 22:38:26 UTC (rev 231772)
@@ -1,3 +1,16 @@
+2018-05-14  Andy VanWagoner  <andy@vanwagoner.family>
+
+        [INTL] Handle error in defineProperty for supported locales length
+        https://bugs.webkit.org/show_bug.cgi?id=185623
+
+        Reviewed by Saam Barati.
+
+        Adds the missing RETURN_IF_EXCEPTION after defineOwnProperty for the
+        length of the supported locales array.
+
+        * runtime/IntlObject.cpp:
+        (JSC::supportedLocales):
+
 2018-05-14  Yusuke Suzuki  <utatane....@gmail.com>
 
         [JSC] Tweak LiteralParser to improve lexing performance

Modified: trunk/Source/_javascript_Core/runtime/IntlObject.cpp (231771 => 231772)


--- trunk/Source/_javascript_Core/runtime/IntlObject.cpp	2018-05-14 22:31:40 UTC (rev 231771)
+++ trunk/Source/_javascript_Core/runtime/IntlObject.cpp	2018-05-14 22:38:26 UTC (rev 231772)
@@ -856,6 +856,7 @@
         RETURN_IF_EXCEPTION(scope, JSValue());
     }
     supportedLocales->defineOwnProperty(supportedLocales, &state, vm.propertyNames->length, desc, true);
+    RETURN_IF_EXCEPTION(scope, JSValue());
 
     return supportedLocales;
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to