https://bugs.webkit.org/show_bug.cgi?id=189186
<rdar://problem/
39786049>
Reviewed by Michael Saboff.
JSTests:
* stress/regress-189186.js: Added.
Source/JavaScriptCore:
* runtime/JSDataView.cpp:
(JSC::JSDataView::defineOwnProperty):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235554
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2018-08-31 Mark Lam <mark.lam@apple.com>
2018-08-31 Mark Lam <mark.lam@apple.com>
+ Fix exception check accounting in JSDataView::defineOwnProperty().
+ https://bugs.webkit.org/show_bug.cgi?id=189186
+ <rdar://problem/39786049>
+
+ Reviewed by Michael Saboff.
+
+ * stress/regress-189186.js: Added.
+
+2018-08-31 Mark Lam <mark.lam@apple.com>
+
Add missing exception check in arrayProtoFuncLastIndexOf().
https://bugs.webkit.org/show_bug.cgi?id=189184
<rdar://problem/39785959>
Add missing exception check in arrayProtoFuncLastIndexOf().
https://bugs.webkit.org/show_bug.cgi?id=189184
<rdar://problem/39785959>
--- /dev/null
+//@ runDefault
+// This test passes if it does not crash.
+let x = new DataView(new ArrayBuffer(1));
+Object.defineProperty(x, 'foo', {});
2018-08-31 Mark Lam <mark.lam@apple.com>
2018-08-31 Mark Lam <mark.lam@apple.com>
+ Fix exception check accounting in JSDataView::defineOwnProperty().
+ https://bugs.webkit.org/show_bug.cgi?id=189186
+ <rdar://problem/39786049>
+
+ Reviewed by Michael Saboff.
+
+ * runtime/JSDataView.cpp:
+ (JSC::JSDataView::defineOwnProperty):
+
+2018-08-31 Mark Lam <mark.lam@apple.com>
+
Add missing exception check in arrayProtoFuncLastIndexOf().
https://bugs.webkit.org/show_bug.cgi?id=189184
<rdar://problem/39785959>
Add missing exception check in arrayProtoFuncLastIndexOf().
https://bugs.webkit.org/show_bug.cgi?id=189184
<rdar://problem/39785959>
|| propertyName == vm.propertyNames->byteOffset)
return typeError(exec, scope, shouldThrow, "Attempting to define read-only typed array property."_s);
|| propertyName == vm.propertyNames->byteOffset)
return typeError(exec, scope, shouldThrow, "Attempting to define read-only typed array property."_s);
return Base::defineOwnProperty(thisObject, exec, propertyName, descriptor, shouldThrow);
}
return Base::defineOwnProperty(thisObject, exec, propertyName, descriptor, shouldThrow);
}