Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f8a55904a2687f94d34099e640f74bfb04844858
      
https://github.com/WebKit/WebKit/commit/f8a55904a2687f94d34099e640f74bfb04844858
  Author: Marais Rossouw <[email protected]>
  Date:   2024-10-29 (Tue, 29 Oct 2024)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/dom/observable/tentative/observable-some.any-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/dom/observable/tentative/observable-some.any.worker-expected.txt
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    A Source/WebCore/dom/InternalObserverSome.cpp
    A Source/WebCore/dom/InternalObserverSome.h
    M Source/WebCore/dom/Observable.cpp
    M Source/WebCore/dom/Observable.h
    M Source/WebCore/dom/Observable.idl

  Log Message:
  -----------
  Implement Observable#some
https://bugs.webkit.org/show_bug.cgi?id=277513

Reviewed by Darin Adler.

This change introduces the `.some` promise-returning operator
for Observables, using the InternalObserver and subscribing immediately.
This is required by the specification 
https://wicg.github.io/observable/#dom-observable-some

* 
LayoutTests/imported/w3c/web-platform-tests/dom/observable/tentative/observable-some.any-expected.txt:
 Rebaseline.
* 
LayoutTests/imported/w3c/web-platform-tests/dom/observable/tentative/observable-some.any.worker-expected.txt:
 Rebaseline.
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/dom/InternalObserverSome.cpp: Added.
(WebCore::createInternalObserverOperatorSome):
* Source/WebCore/dom/InternalObserverSome.h: Added.
* Source/WebCore/dom/Observable.cpp:
(WebCore::Observable::some):
* Source/WebCore/dom/Observable.h:
* Source/WebCore/dom/Observable.idl:
  Exposes `Promise<boolean> some(predicate, options)` as a promise-returning 
operator.

Canonical link: https://commits.webkit.org/285833@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