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

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: Review comments. 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
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // These new fields cannot be declared final, because a constructor exists 98 // These new fields cannot be declared final, because a constructor exists
99 // in the original version of this patched class. 99 // in the original version of this patched class.
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 static _throwNew(String msg) {
109 throw new _InternalError(msg);
110 }
111 }
112
113 patch class UnsupportedError {
114 static _throwNew(String msg) {
115 throw new UnsupportedError(msg);
116 }
108 } 117 }
109 118
110 patch class CyclicInitializationError { 119 patch class CyclicInitializationError {
111 static _throwNew(String variableName) { 120 static _throwNew(String variableName) {
112 throw new CyclicInitializationError(variableName); 121 throw new CyclicInitializationError(variableName);
113 } 122 }
114 } 123 }
115 124
116 patch class AbstractClassInstantiationError { 125 patch class AbstractClassInstantiationError {
117 AbstractClassInstantiationError._create( 126 AbstractClassInstantiationError._create(
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 msg_buf.write( 339 msg_buf.write(
331 "NoSuchMethodError: incorrect number of arguments passed to " 340 "NoSuchMethodError: incorrect number of arguments passed to "
332 "method named '$memberName'\n" 341 "method named '$memberName'\n"
333 "Receiver: $receiver_str\n" 342 "Receiver: $receiver_str\n"
334 "Tried calling: $memberName($actualParameters)\n" 343 "Tried calling: $memberName($actualParameters)\n"
335 "Found: $memberName($formalParameters)"); 344 "Found: $memberName($formalParameters)");
336 } 345 }
337 return msg_buf.toString(); 346 return msg_buf.toString();
338 } 347 }
339 } 348 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698