Title: [231983] trunk
- Revision
- 231983
- Author
- [email protected]
- Date
- 2018-05-18 14:46:13 -0700 (Fri, 18 May 2018)
Log Message
Add missing exception check.
https://bugs.webkit.org/show_bug.cgi?id=185786
<rdar://problem/35686560>
Reviewed by Michael Saboff.
JSTests:
* stress/regress-185786.js: Added.
Source/_javascript_Core:
* runtime/JSPropertyNameEnumerator.h:
(JSC::propertyNameEnumerator):
Modified Paths
Added Paths
Diff
Modified: trunk/JSTests/ChangeLog (231982 => 231983)
--- trunk/JSTests/ChangeLog 2018-05-18 21:29:27 UTC (rev 231982)
+++ trunk/JSTests/ChangeLog 2018-05-18 21:46:13 UTC (rev 231983)
@@ -1,3 +1,13 @@
+2018-05-18 Mark Lam <[email protected]>
+
+ Add missing exception check.
+ https://bugs.webkit.org/show_bug.cgi?id=185786
+ <rdar://problem/35686560>
+
+ Reviewed by Michael Saboff.
+
+ * stress/regress-185786.js: Added.
+
2018-05-16 Filip Pizlo <[email protected]>
JSC should have InstanceOf inline caching
Added: trunk/JSTests/stress/regress-185786.js (0 => 231983)
--- trunk/JSTests/stress/regress-185786.js (rev 0)
+++ trunk/JSTests/stress/regress-185786.js 2018-05-18 21:46:13 UTC (rev 231983)
@@ -0,0 +1,22 @@
+function foo() {
+ return new Proxy({},
+ new Proxy({}, {
+ get: function () {
+ throw "expected exception";
+ }
+ })
+ );
+}
+
+var a = foo();
+var b = Object.create(a);
+
+var exception;
+try {
+ for (var v in b) { }
+} catch (e) {
+ exception = e;
+}
+
+if (exception != "expected exception")
+ throw "FAIL";
Modified: trunk/Source/_javascript_Core/ChangeLog (231982 => 231983)
--- trunk/Source/_javascript_Core/ChangeLog 2018-05-18 21:29:27 UTC (rev 231982)
+++ trunk/Source/_javascript_Core/ChangeLog 2018-05-18 21:46:13 UTC (rev 231983)
@@ -1,3 +1,14 @@
+2018-05-18 Mark Lam <[email protected]>
+
+ Add missing exception check.
+ https://bugs.webkit.org/show_bug.cgi?id=185786
+ <rdar://problem/35686560>
+
+ Reviewed by Michael Saboff.
+
+ * runtime/JSPropertyNameEnumerator.h:
+ (JSC::propertyNameEnumerator):
+
2018-05-18 Jer Noble <[email protected]>
Complete fix for enabling modern EME by default
Modified: trunk/Source/_javascript_Core/runtime/JSPropertyNameEnumerator.h (231982 => 231983)
--- trunk/Source/_javascript_Core/runtime/JSPropertyNameEnumerator.h 2018-05-18 21:29:27 UTC (rev 231982)
+++ trunk/Source/_javascript_Core/runtime/JSPropertyNameEnumerator.h 2018-05-18 21:46:13 UTC (rev 231983)
@@ -122,14 +122,13 @@
numberStructureProperties = propertyNames.size();
base->methodTable(vm)->getGenericPropertyNames(base, exec, propertyNames, EnumerationMode());
- scope.assertNoException();
} else {
// Generic property names vector contains all indexed property names.
// So disable indexed property enumeration phase by setting |indexedLength| to 0.
indexedLength = 0;
base->methodTable(vm)->getPropertyNames(base, exec, propertyNames, EnumerationMode());
- RETURN_IF_EXCEPTION(scope, nullptr);
}
+ RETURN_IF_EXCEPTION(scope, nullptr);
ASSERT(propertyNames.size() < UINT32_MAX);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes