[webkit-changes] [WebKit/WebKit] 9bba5a: [JSC] Fix iteratorHelperPrivateFuncCreate since un...
Yijia Huang
noreply at github.com
Sun Oct 27 21:11:43 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9bba5ab0c0ab6d17baf95622bf6cb46fe78b66e6
https://github.com/WebKit/WebKit/commit/9bba5ab0c0ab6d17baf95622bf6cb46fe78b66e6
Author: Yijia Huang <hyjorc1 at gmail.com>
Date: 2024-10-27 (Sun, 27 Oct 2024)
Changed paths:
M Source/JavaScriptCore/runtime/JSIteratorHelper.cpp
M Source/JavaScriptCore/runtime/JSIteratorHelper.h
Log Message:
-----------
[JSC] Fix iteratorHelperPrivateFuncCreate since underlyingIterator can be jsNull
https://bugs.webkit.org/show_bug.cgi?id=282158
rdar://138642507
Reviewed by Mark Lam.
The internal field underlyingIterator of iteratorHelper can be null in
JSIteratorConstructor.js, and its nullability is checked in
JSIteratorHelperPrototype.js. This patch addresses that case by directly
passing JSValue in JSIteratorHelper::create.
* Source/JavaScriptCore/runtime/JSIteratorHelper.cpp:
(JSC::JSIteratorHelper::create):
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/JSIteratorHelper.h:
Canonical link: https://commits.webkit.org/285757@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list