[Webkit-unassigned] [Bug 135866] New: Built-in Promise API does not work with headless JSContexts

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 12 16:20:44 PDT 2014


           Summary: Built-in Promise API does not work with headless
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ide+webkit at outlook.com

The built-in Promise implementation does not work with a JSContext that is not associated with a WebView/UIWebView/WKWebView and prints out the error, "Event loop not supported". For example, fulfilling a Promise calls "globalObject->queueMicrotask" which fails to invoke subscribed callbacks.

Sample code:

JSContext *context = [[JSContext alloc] init];
[context evaluateScript:@"Promise.resolve(42).then(function(result) { /*...*/ })"];
// Prints "ERROR: Event loop not supported."

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list