[jsc-dev] call async arrow function will cause error

shuan zhao hszhsh at icloud.com
Mon Jan 9 22:31:09 PST 2017


My test code is as follows. When I run the code, I got the error “Can't find private variable: @derivedConstructor”. V8 is ok with the test code.

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();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/jsc-dev/attachments/20170110/df98d1d7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1789 bytes
Desc: not available
URL: <https://lists.webkit.org/pipermail/jsc-dev/attachments/20170110/df98d1d7/attachment.p7s>


More information about the jsc-dev mailing list