Title: [293398] branches/safari-613.2.7.1-branch/Source/_javascript_Core/API/JSTypedArray.cpp
- Revision
- 293398
- Author
- [email protected]
- Date
- 2022-04-25 18:49:53 -0700 (Mon, 25 Apr 2022)
Log Message
Apply patch. rdar://67069953
Modified Paths
Diff
Modified: branches/safari-613.2.7.1-branch/Source/_javascript_Core/API/JSTypedArray.cpp (293397 => 293398)
--- branches/safari-613.2.7.1-branch/Source/_javascript_Core/API/JSTypedArray.cpp 2022-04-26 01:49:49 UTC (rev 293397)
+++ branches/safari-613.2.7.1-branch/Source/_javascript_Core/API/JSTypedArray.cpp 2022-04-26 01:49:53 UTC (rev 293398)
@@ -376,14 +376,6 @@
VM& vm = globalObject->vm();
JSObject* object = toJS(objectRef);
- if (!object) {
- // For some reason prior to https://bugs.webkit.org/show_bug.cgi?id=235720 Clang would emit code
- // to early return if objectRef is 0 but not after. Passing 0 should be invalid API use.
- static bool shouldntCrash = isLinkedBeforeTypedArrayLengthQuirk();
- RELEASE_ASSERT(shouldntCrash);
- return 0;
- }
-
if (JSArrayBuffer* jsBuffer = jsDynamicCast<JSArrayBuffer*>(vm, object))
return jsBuffer->impl()->byteLength();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes