Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Issue 972063003: Make sure to bind a method to its receiver if it is stored in a temporary. (Closed)

Created:
5 years, 9 months ago by sigurdm
Modified:
5 years, 9 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Make sure to bind a method to its receiver if it is stored in a temporary. Otherwise `this` is not bound when the temprary is invoked. BUG= R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=44449

Patch Set 1 #

Total comments: 2

Patch Set 2 : Avoid using JavaScript bind. Rely on functions never changing #

Total comments: 20

Patch Set 3 : Address review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -11 lines) Patch
M pkg/compiler/lib/src/js/rewrite_async.dart View 1 2 6 chunks +49 lines, -4 lines 0 comments Download
M pkg/js_ast/lib/src/nodes.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M tests/compiler/dart2js/async_await_js_transform_test.dart View 1 6 chunks +6 lines, -6 lines 0 comments Download
A tests/language/async_this_bound_test.dart View 1 2 1 chunk +59 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
sigurdm
The first bug found by the fuzzing.
5 years, 9 months ago (2015-03-05 13:06:23 UTC) #2
sigurdm
PTAL
5 years, 9 months ago (2015-03-06 15:04:39 UTC) #3
floitsch
LGTM. https://codereview.chromium.org/972063003/diff/1/pkg/compiler/lib/src/js/rewrite_async.dart File pkg/compiler/lib/src/js/rewrite_async.dart (right): https://codereview.chromium.org/972063003/diff/1/pkg/compiler/lib/src/js/rewrite_async.dart#newcode412 pkg/compiler/lib/src/js/rewrite_async.dart:412: /// temp = a.b; nit: make sure that ...
5 years, 9 months ago (2015-03-06 16:32:16 UTC) #4
sigurdm
https://codereview.chromium.org/972063003/diff/20001/pkg/compiler/lib/src/js/rewrite_async.dart File pkg/compiler/lib/src/js/rewrite_async.dart (right): https://codereview.chromium.org/972063003/diff/20001/pkg/compiler/lib/src/js/rewrite_async.dart#newcode428 pkg/compiler/lib/src/js/rewrite_async.dart:428: /// temp = <receiver>.m; On 2015/03/06 16:32:16, floitsch wrote: ...
5 years, 9 months ago (2015-03-09 14:34:12 UTC) #5
sigurdm
5 years, 9 months ago (2015-03-13 08:22:09 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 44449 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698