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

Side by Side Diff: runtime/lib/errors_patch.dart

Issue 1683363002: Remove support for Javascript warnings in the VM. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address comment Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/lib/identical.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:_internal' as internal; 5 import 'dart:_internal' as internal;
6 import 'dart:convert' show JSON; 6 import 'dart:convert' show JSON;
7 7
8 patch class Error { 8 patch class Error {
9 /* patch */ static String _objectToString(Object object) { 9 /* patch */ static String _objectToString(Object object) {
10 return Object._toString(object); 10 return Object._toString(object);
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 msg_buf.write( 355 msg_buf.write(
356 "NoSuchMethodError: incorrect number of arguments passed to " 356 "NoSuchMethodError: incorrect number of arguments passed to "
357 "method named '$memberName'\n" 357 "method named '$memberName'\n"
358 "Receiver: $receiver_str\n" 358 "Receiver: $receiver_str\n"
359 "Tried calling: $memberName($actualParameters)\n" 359 "Tried calling: $memberName($actualParameters)\n"
360 "Found: $memberName($formalParameters)"); 360 "Found: $memberName($formalParameters)");
361 } 361 }
362 return msg_buf.toString(); 362 return msg_buf.toString();
363 } 363 }
364 } 364 }
365
366 class _JavascriptIntegerOverflowError extends Error {
367 final Object _value;
368
369 _JavascriptIntegerOverflowError(this._value);
370 String toString() => "Javascript Integer Overflow: $_value";
371 }
372
373 class _JavascriptCompatibilityError extends Error {
374 final String _msg;
375
376 _JavascriptCompatibilityError(this._msg);
377 String toString() => "Javascript Compatibility Error: $_msg";
378 }
379
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/identical.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698