Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9bba5ab0c0ab6d17baf95622bf6cb46fe78b66e6
      
https://github.com/WebKit/WebKit/commit/9bba5ab0c0ab6d17baf95622bf6cb46fe78b66e6
  Author: Yijia Huang <[email protected]>
  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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to