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

Issue 2405353002: Improvements to NoSuchMethodError.toString (Closed)

Created:
4 years, 2 months ago by Hixie
Modified:
4 years, 2 months ago
Reviewers:
rmacnak, Cutch
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Improvements to NoSuchMethodError.toString This makes the following improvements: * Always show the call that was made, with arguments. * ...and show the actual arguments in more cases. * Be less confusing in the case of a call on the null receiver. * Be less redundant in the output. * Report when a constructor is called with the wrong number of arguments. R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/7fd9df4d91cb9d9f6f415627f4b60be60810d0a6

Patch Set 1 #

Patch Set 2 : Improvements to NoSuchMethodError.toString #

Total comments: 2

Patch Set 3 : fix comment from john #

Patch Set 4 : Fix for Ryan's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -105 lines) Patch
M runtime/lib/errors_patch.dart View 1 2 3 2 chunks +82 lines, -91 lines 0 comments Download
M runtime/vm/isolate_reload_test.cc View 8 chunks +12 lines, -12 lines 0 comments Download
M tests/language/vm/no_such_method_error_message_vm_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
Hixie
Here'
4 years, 2 months ago (2016-10-11 21:49:59 UTC) #4
Hixie
Sorry about that. What I meant to say was: Here's a file that shows sample ...
4 years, 2 months ago (2016-10-11 21:51:24 UTC) #5
Cutch
LGTMwC +rmacnak https://codereview.chromium.org/2405353002/diff/20001/runtime/lib/errors_patch.dart File runtime/lib/errors_patch.dart (right): https://codereview.chromium.org/2405353002/diff/20001/runtime/lib/errors_patch.dart#newcode250 runtime/lib/errors_patch.dart:250: argumentCount = 0; redundant
4 years, 2 months ago (2016-10-11 22:34:59 UTC) #7
rmacnak
lgtm https://codereview.chromium.org/2405353002/diff/20001/runtime/lib/errors_patch.dart File runtime/lib/errors_patch.dart (right): https://codereview.chromium.org/2405353002/diff/20001/runtime/lib/errors_patch.dart#newcode326 runtime/lib/errors_patch.dart:326: } else if (_receiver == null) { Redundant ...
4 years, 2 months ago (2016-10-11 22:55:02 UTC) #8
Cutch
4 years, 2 months ago (2016-10-12 16:52:58 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
7fd9df4d91cb9d9f6f415627f4b60be60810d0a6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698