Title: [293386] branches/safari-613.2.7.3-branch/Source/_javascript_Core/API/JSTypedArray.cpp
- Revision
- 293386
- Author
- alanc...@apple.com
- Date
- 2022-04-25 18:00:54 -0700 (Mon, 25 Apr 2022)
Log Message
Apply patch. rdar://67069953
Modified Paths
Diff
Modified: branches/safari-613.2.7.3-branch/Source/_javascript_Core/API/JSTypedArray.cpp (293385 => 293386)
--- branches/safari-613.2.7.3-branch/Source/_javascript_Core/API/JSTypedArray.cpp 2022-04-26 01:00:49 UTC (rev 293385)
+++ branches/safari-613.2.7.3-branch/Source/_javascript_Core/API/JSTypedArray.cpp 2022-04-26 01:00:54 UTC (rev 293386)
@@ -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
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes