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

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

Issue 1916793003: - Allow for loading dart:html and friends into the standalone (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebase. Created 4 years, 7 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 | « runtime/bin/dartutils.cc ('k') | runtime/vm/compiler.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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 String _url; 100 String _url;
101 int _line; 101 int _line;
102 } 102 }
103 103
104 class _InternalError { 104 class _InternalError {
105 const _InternalError(this._msg); 105 const _InternalError(this._msg);
106 String toString() => "InternalError: '${_msg}'"; 106 String toString() => "InternalError: '${_msg}'";
107 final String _msg; 107 final String _msg;
108 } 108 }
109 109
110 patch class UnsupportedError {
111 static _throwNew(String msg) {
112 throw new UnsupportedError(msg);
113 }
114 }
115
110 patch class CyclicInitializationError { 116 patch class CyclicInitializationError {
111 static _throwNew(String variableName) { 117 static _throwNew(String variableName) {
112 throw new CyclicInitializationError(variableName); 118 throw new CyclicInitializationError(variableName);
113 } 119 }
114 } 120 }
115 121
116 patch class AbstractClassInstantiationError { 122 patch class AbstractClassInstantiationError {
117 AbstractClassInstantiationError._create( 123 AbstractClassInstantiationError._create(
118 this._className, this._url, this._line); 124 this._className, this._url, this._line);
119 125
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 msg_buf.write( 336 msg_buf.write(
331 "NoSuchMethodError: incorrect number of arguments passed to " 337 "NoSuchMethodError: incorrect number of arguments passed to "
332 "method named '$memberName'\n" 338 "method named '$memberName'\n"
333 "Receiver: $receiver_str\n" 339 "Receiver: $receiver_str\n"
334 "Tried calling: $memberName($actualParameters)\n" 340 "Tried calling: $memberName($actualParameters)\n"
335 "Found: $memberName($formalParameters)"); 341 "Found: $memberName($formalParameters)");
336 } 342 }
337 return msg_buf.toString(); 343 return msg_buf.toString();
338 } 344 }
339 } 345 }
OLDNEW
« no previous file with comments | « runtime/bin/dartutils.cc ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698