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

Issue 2507493003: Improve noSuchMethod error message for type objects. (Closed)

Created:
4 years, 1 month ago by Florian Schneider
Modified:
4 years, 1 month ago
Reviewers:
rmacnak
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Improve noSuchMethod error message for type objects. This CL improves the message when trying to invoke 'call' on _Type objects. This often happens when 'new' is forgotten ("C()" instead of "new C()") Fixes #27651. R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/2a40a14c7a30be936645aaabc1cd5d65ae19fb5b

Patch Set 1 #

Patch Set 2 : improve message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -1 line) Patch
M runtime/lib/errors_patch.dart View 1 3 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
Florian Schneider
The new message looks like this: NoSuchMethodError: Attempted to use type 'A' as a function. ...
4 years, 1 month ago (2016-11-15 21:50:20 UTC) #2
Hixie
I think this is an improvement and I love it. For the record, the reason ...
4 years, 1 month ago (2016-11-15 21:56:12 UTC) #3
Florian Schneider
On 2016/11/15 21:56:12, Hixie wrote: > I think this is an improvement and I love ...
4 years, 1 month ago (2016-11-15 22:46:45 UTC) #4
rmacnak
lgtm
4 years, 1 month ago (2016-11-15 22:52:05 UTC) #5
Florian Schneider
4 years, 1 month ago (2016-11-15 23:20:23 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
2a40a14c7a30be936645aaabc1cd5d65ae19fb5b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698