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

Side by Side Diff: tool/input_sdk/private/errors.dart

Issue 1530563003: Generate all runtime files from dart. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merged master Created 4 years, 11 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 | « tool/input_sdk/private/classes.dart ('k') | tool/input_sdk/private/foreign_helper.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
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.
4 part of dart._runtime;
5
6 throwCastError(actual, type) => JS('', '''(() => {
7 $throw_(new $CastErrorImplementation($actual, $type));
8 })()''');
9
10 throwAssertionError() => JS('', '''(() => {
11 $throw_(new $AssertionError());
12 })()''');
13
14 throwNullValueError() => JS('', '''(() => {
15 // TODO(vsm): Per spec, we should throw an NSM here. Technically, we ought
16 // to thread through method info, but that uglifies the code and can't
17 // actually be queried ... it only affects how the error is printed.
18 $throw_(new $NoSuchMethodError(null,
19 new $Symbol('<Unexpected Null Value>'), null, null, null));
20 })()''');
OLDNEW
« no previous file with comments | « tool/input_sdk/private/classes.dart ('k') | tool/input_sdk/private/foreign_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698