[Webkit-unassigned] [Bug 166919] "this" missing after await in async arrow function
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 20 12:02:11 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=166919
--- Comment #7 from GSkachkov <gskachkov at gmail.com> ---
(In reply to comment #0)
> 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();
Shuan Zhao, Could you please check if issue is fixed and close it?
I don't have permissions to do this.
--
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/20170120/a2572300/attachment.html>
More information about the webkit-unassigned
mailing list