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

Issue 10989013: Change IllegalArgumentException to ArgumentError. (Closed)

Created:
8 years, 2 months ago by Lasse Reichstein Nielsen
Modified:
8 years, 2 months ago
CC:
reviews_dartlang.org, Anton Muhin
Visibility:
Public.

Description

Change IllegalArgumentException to ArgumentError. Committed: https://code.google.com/p/dart/source/detail?r=12841

Patch Set 1 #

Patch Set 2 : Updated co19 test expectations. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+430 lines, -379 lines) Patch
M lib/compiler/implementation/dart2js.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/lib/coreimpl_patch.dart View 3 chunks +4 lines, -4 lines 0 comments Download
M lib/compiler/implementation/lib/interceptors.dart View 13 chunks +24 lines, -24 lines 0 comments Download
M lib/compiler/implementation/lib/js_helper.dart View 19 chunks +24 lines, -24 lines 0 comments Download
M lib/compiler/implementation/lib/math_patch.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/ssa/nodes.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/util/uri_extras.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M lib/core/comparable.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/core/errors.dart View 1 1 chunk +22 lines, -0 lines 2 comments Download
M lib/core/exceptions.dart View 1 chunk +0 lines, -7 lines 0 comments Download
M lib/core/list.dart View 5 chunks +5 lines, -5 lines 0 comments Download
M lib/coreimpl/arrays.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/coreimpl/date.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M lib/coreimpl/future_implementation.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/html/dart2js/html_dart2js.dart View 8 chunks +9 lines, -9 lines 0 comments Download
M lib/html/dartium/html_dartium.dart View 6 chunks +7 lines, -7 lines 0 comments Download
M lib/html/src/_Lists.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M lib/html/src/shared_FactoryProviders.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate View 1 chunk +1 line, -1 line 0 comments Download
M lib/html/templates/html/impl/impl_DocumentFragment.darttemplate View 2 chunks +2 lines, -2 lines 0 comments Download
M lib/html/templates/html/impl/impl_Element.darttemplate View 2 chunks +2 lines, -2 lines 0 comments Download
M lib/html/templates/html/impl/impl_MutationObserver.darttemplate View 1 chunk +1 line, -1 line 0 comments Download
M lib/math/base.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M lib/scalarlist/byte_arrays.dart View 17 chunks +33 lines, -33 lines 0 comments Download
M lib/uri/encode_decode.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M lib/uri/uri.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M lib/utf/utf16.dart View 7 chunks +7 lines, -7 lines 0 comments Download
M lib/utf/utf32.dart View 8 chunks +8 lines, -8 lines 0 comments Download
M lib/utf/utf8.dart View 7 chunks +7 lines, -7 lines 0 comments Download
M lib/utf/utf_core.dart View 4 chunks +5 lines, -5 lines 0 comments Download
M pkg/args/lib/args.dart View 5 chunks +7 lines, -7 lines 0 comments Download
M pkg/args/test/args_test.dart View 5 chunks +13 lines, -13 lines 0 comments Download
M pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M pkg/fixnum/int32.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M pkg/fixnum/int64.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M pkg/fixnum/test/int_32_test.dart View 1 chunk +6 lines, -6 lines 0 comments Download
M pkg/fixnum/test/int_64_test.dart View 1 chunk +6 lines, -6 lines 0 comments Download
M pkg/intl/lib/date_format.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/intl/lib/intl.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/logging/lib/logging.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/unittest/core_matchers.dart View 1 chunk +8 lines, -8 lines 0 comments Download
M pkg/unittest/string_matchers.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/unittest/test/matchers_test.dart View 1 chunk +6 lines, -6 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/directory_impl.dart View 8 chunks +8 lines, -8 lines 0 comments Download
M runtime/bin/file_impl.dart View 4 chunks +11 lines, -11 lines 0 comments Download
M runtime/bin/http_impl.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/path_impl.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/process.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/process_impl.dart View 5 chunks +9 lines, -9 lines 0 comments Download
M runtime/bin/socket_impl.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/websocket_impl.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/array.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/lib/array.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/byte_array.cc View 2 chunks +3 lines, -3 lines 0 comments Download
runtime/lib/byte_array.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/lib/date.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/lib/date_patch.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/lib/double.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/lib/expando_patch.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/growable_array.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/lib/integers.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/integers.dart View 1 chunk +1 line, -1 line 0 comments Download
runtime/lib/isolate.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/math_patch.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/string.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/lib/string_base.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M runtime/tests/vm/dart/byte_array_test.dart View 10 chunks +10 lines, -10 lines 0 comments Download
M runtime/vm/exceptions.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/exceptions.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/native_entry.h View 1 chunk +1 line, -1 line 0 comments Download
M tests/co19/co19-dart2js.status View 1 1 chunk +17 lines, -0 lines 2 comments Download
M tests/co19/co19-runtime.status View 1 2 chunks +19 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/mock_compiler.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/core_runtime_types_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/expando_test.dart View 1 chunk +6 lines, -6 lines 0 comments Download
M tests/corelib/indexed_list_access_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/integer_to_radix_string_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/list_get_range_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/list_insert_range_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/list_remove_range_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M tests/corelib/list_removeat_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M tests/corelib/list_set_range_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M tests/corelib/string_base_vm_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/corelib/string_test.dart View 1 chunk +1 line, -1 line 0 comments Download
tests/html/element_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/html/svgelement_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/html/xmldocument_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/html/xmlelement_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/language/arithmetic2_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/language/list_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/directory_invalid_arguments_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M tests/standalone/io/file_invalid_arguments_test.dart View 4 chunks +8 lines, -8 lines 0 comments Download
M tests/standalone/io/process_invalid_arguments_test.dart View 1 chunk +10 lines, -10 lines 0 comments Download
M tests/utils/uri_test.dart View 4 chunks +6 lines, -6 lines 0 comments Download
M tools/utils/vim/syntax/dart.vim View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/package.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/system_cache.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/version.dart View 4 chunks +6 lines, -6 lines 0 comments Download
utils/template/utils.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/version_test.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein Nielsen
Still working on the analyzer test expectation. Please review what's here. The real change is ...
8 years, 2 months ago (2012-09-25 10:59:42 UTC) #1
Lasse Reichstein Nielsen
Adding Mads too.
8 years, 2 months ago (2012-09-25 11:07:13 UTC) #2
Lasse Reichstein Nielsen
Analyzer tests are fine as-is.
8 years, 2 months ago (2012-09-25 11:27:05 UTC) #3
Søren Gjesse
lgtm https://codereview.chromium.org/10989013/diff/2001/lib/core/errors.dart File lib/core/errors.dart (right): https://codereview.chromium.org/10989013/diff/2001/lib/core/errors.dart#newcode28 lib/core/errors.dart:28: String toString() => "Illegal argument(s): $message"; Shouldn't the ...
8 years, 2 months ago (2012-09-25 12:22:24 UTC) #4
Lasse Reichstein Nielsen
8 years, 2 months ago (2012-09-25 12:28:07 UTC) #5
I have made changes to dart2js_html. The next time it's generated, it'll need to
use ArgumentError instead of IllegalArgumentException.

https://codereview.chromium.org/10989013/diff/2001/lib/core/errors.dart
File lib/core/errors.dart (right):

https://codereview.chromium.org/10989013/diff/2001/lib/core/errors.dart#newco...
lib/core/errors.dart:28: String toString() => "Illegal argument(s): $message";
It should, yes.

https://codereview.chromium.org/10989013/diff/2001/tests/co19/co19-dart2js.st...
File tests/co19/co19-dart2js.status (right):

https://codereview.chromium.org/10989013/diff/2001/tests/co19/co19-dart2js.st...
tests/co19/co19-dart2js.status:96:
LibTest/core/Completer/completeException_A02_t01: Fail # issue 224
On 2012/09/25 12:22:24, Søren Gjesse wrote:
> Please add co19 to the comment to avoid confusion with the dart issue numbers.

Done.

Powered by Google App Engine
This is Rietveld 408576698