[Webkit-unassigned] [Bug 166879] New: Calling async arrow function which is in a class's member function will cause error
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 9 23:12:50 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=166879
Bug ID: 166879
Summary: Calling async arrow function which is in a class's
member function will cause error
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: hszhsh at icloud.com
The test code is as follows. When I run the code, I got the error âCan't find private variable: @derivedConstructorâ.
function doSomething(callback) {
callback();
}
class Test {
testFunc() {
doSomething(async () => {
console.log("testFunc");
await sleep(2);
console.log("testFunc end");
});
}
}
let test = new Test();
test.testFunc();
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170110/5d432311/attachment.html>
More information about the webkit-unassigned
mailing list