<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - "this" missing after await in async arrow function"
href="https://bugs.webkit.org/show_bug.cgi?id=166919#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - "this" missing after await in async arrow function"
href="https://bugs.webkit.org/show_bug.cgi?id=166919">bug 166919</a>
from <span class="vcard"><a class="email" href="mailto:gskachkov@gmail.com" title="GSkachkov <gskachkov@gmail.com>"> <span class="fn">GSkachkov</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=166919#c0">comment #0</a>)
<span class="quote">> My test code is as follows.
>
> function runSomething(callback) {
>         callback();
> }
>
> class Test {
>         testFunc() {
>                 this.prop = "123";
>                 runSomething(async () => {
>                         console.log("callback " + this.prop); // It's ok here
>                         await sleep(2);
>                         console.log("callback end " + this.prop); // TypeError: undefined is not
> an object (evaluating 'this.prop')
>                 });
>         }
> }
>
> let t = new Test();
> t.testFunc();</span >
Shuan Zhao, Could you please check if issue is fixed and close it?
I don't have permissions to do this.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>