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

Issue 14652008: Fix error reporting when calling static methods and closures withh mismatched arguments. (Closed)

Created:
7 years, 7 months ago by srdjan
Modified:
7 years, 7 months ago
Reviewers:
regis, siva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix error reporting when calling static methods and closures withh mismatched arguments. Closures BEFORE: ---- Unhandled exception: Class '(dynamic, dynamic, dynamic) => dynamic' has no instance method 'call'. NoSuchMethodError : method not found: 'call' Receiver: Closure: (dynamic, dynamic, dynamic, dynamic) => dynamic from Function 'foo':. Arguments: [2] Closures NOW: ---- Closure call with mismatched arguments: function 'A.foo' NoSuchMethodError: incorrect number of arguments passed to method named 'A.foo' Receiver: Closure: (dynamic, dynamic, dynamic, dynamic) => dynamic from Function 'foo':. Tried calling: A.foo(2) Found: A.foo(a, b, c) Statics BEFORE: ---- Unhandled exception: No top-level method 'foo' declared. NoSuchMethodError : method not found: 'foo' Receiver: Type: class '::' Arguments: [] Statics NOW: ---- Unhandled exception: No top-level method 'foo' with matching arguments declared. NoSuchMethodError: incorrect number of arguments passed to method named 'foo' Receiver: top-level Tried calling: foo(...) Found: foo(a, b, c) R=regis@google.com Committed: https://code.google.com/p/dart/source/detail?r=22209

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 9

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -19 lines) Patch
M runtime/lib/errors_patch.dart View 1 2 3 4 5 6 7 8 4 chunks +20 lines, -5 lines 0 comments Download
M runtime/lib/object.cc View 1 2 3 1 chunk +10 lines, -6 lines 0 comments Download
M runtime/vm/code_generator.cc View 1 2 3 4 5 9 1 chunk +8 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/object.cc View 5 6 7 8 3 chunks +24 lines, -3 lines 0 comments Download
M runtime/vm/object_test.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
srdjan
7 years, 7 months ago (2013-04-30 18:40:59 UTC) #1
regis
LGTM https://codereview.chromium.org/14652008/diff/7007/runtime/lib/errors_patch.dart File runtime/lib/errors_patch.dart (right): https://codereview.chromium.org/14652008/diff/7007/runtime/lib/errors_patch.dart#newcode26 runtime/lib/errors_patch.dart:26: // Differ between no arguments specified and 0 ...
7 years, 7 months ago (2013-04-30 19:07:10 UTC) #2
srdjan
Also fixed disabled tests in object_test https://codereview.chromium.org/14652008/diff/7007/runtime/lib/errors_patch.dart File runtime/lib/errors_patch.dart (right): https://codereview.chromium.org/14652008/diff/7007/runtime/lib/errors_patch.dart#newcode26 runtime/lib/errors_patch.dart:26: // Differ between ...
7 years, 7 months ago (2013-04-30 21:46:51 UTC) #3
srdjan
7 years, 7 months ago (2013-04-30 22:05:21 UTC) #4
Message was sent while issue was closed.
Committed patchset #10 manually as r22209 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698