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

shuan zhao hszhsh at icloud.com
Mon Jan 9 23:12:24 PST 2017


OK. I have filed a bug here: https://bugs.webkit.org/show_bug.cgi?id=166879

> On 10 Jan 2017, at 2:35 PM, Yusuke SUZUKI <utatane.tea at gmail.com> wrote:
> 
> Nice, that's definitely a bug.
> Could you file it to bugs.webkit.org <http://bugs.webkit.org/>?
> 
> Regards,
> Yusuke Suzuki
> 
> On Tue, Jan 10, 2017 at 3:31 PM, shuan zhao <hszhsh at icloud.com <mailto: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 <mailto:jsc-dev at lists.webkit.org>
> https://lists.webkit.org/mailman/listinfo/jsc-dev <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/a4f8dfc8/attachment-0001.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/a4f8dfc8/attachment-0001.p7s>


More information about the jsc-dev mailing list