Title: [293402] branches/safari-613.2.7.0-branch/Source/_javascript_Core/API/JSTypedArray.cpp
- Revision
- 293402
- Author
- [email protected]
- Date
- 2022-04-25 19:03:36 -0700 (Mon, 25 Apr 2022)
Log Message
Apply patch. rdar://67069953
Modified Paths
Diff
Modified: branches/safari-613.2.7.0-branch/Source/_javascript_Core/API/JSTypedArray.cpp (293401 => 293402)
--- branches/safari-613.2.7.0-branch/Source/_javascript_Core/API/JSTypedArray.cpp 2022-04-26 02:03:32 UTC (rev 293401)
+++ branches/safari-613.2.7.0-branch/Source/_javascript_Core/API/JSTypedArray.cpp 2022-04-26 02:03:36 UTC (rev 293402)
@@ -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