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

Yusuke SUZUKI utatane.tea at gmail.com
Mon Jan 9 22:35:29 PST 2017


Nice, that's definitely a bug.
Could you file it to bugs.webkit.org?

Regards,
Yusuke Suzuki

On Tue, Jan 10, 2017 at 3:31 PM, shuan zhao <hszhsh at icloud.com> wrote:

> 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();
>
> _______________________________________________
> jsc-dev mailing list
> jsc-dev at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/jsc-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/jsc-dev/attachments/20170110/1f416f4c/attachment.html>


More information about the jsc-dev mailing list