[Webkit-unassigned] [Bug 176685] New: Safari 10 /11 problem with if (!await get(something)).
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Sep 11 03:44:01 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=176685
Bug ID: 176685
Summary: Safari 10 /11 problem with if (!await get(something)).
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Blocker
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: myfele at duck2.club
This code doesn't work in Safari (10 and 11, with Technology preview 39a), it blocks page rendering and says::
if(!await a(t, "myPromise").content) {
console.log('ByBye');
}
Of course if I remove await from my source code or check it like this:
if (myPromiseContent === 0) {
it works again.
But I can't use "!" with an await? Is it generally wrong? "eslint" doesn't warn me about this.
Am I wrong?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170911/96bfa66c/attachment-0001.html>
More information about the webkit-unassigned
mailing list