forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Fix iteratorHelperPrivateFuncCreate since underlyingIterator ca…
…n 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
- Loading branch information
Showing
2 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters