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

Side by Side Diff: lib/runtime/_errors.js

Issue 1252953003: Implement more of dart:mirrors (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Remove dangling TODO Created 5 years, 4 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 | lib/runtime/_types.js » ('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) 2015, the Dart project authors. Please see the AUTHORS file 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 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 /* 5 /*
6 * This library encapsulates the core sdk errors that the runtime knows about. 6 * This library encapsulates the core sdk errors that the runtime knows about.
7 * 7 *
8 */ 8 */
9 9
10 dart_library.library('dart_runtime/_errors', null, /* Imports */[ 10 dart_library.library('dart_runtime/_errors', null, /* Imports */[
11 ], /* Lazy Imports */[ 11 ], /* Lazy Imports */[
12 'dart_runtime/_operations',
12 'dart/core', 13 'dart/core',
13 'dart/_js_helper' 14 'dart/_js_helper'
14 ], function(exports, core, _js_helper) { 15 ], function(exports, operations, core, _js_helper) {
15 'use strict'; 16 'use strict';
16 17
17 function throwNoSuchMethod(obj, name, pArgs, nArgs, extras) { 18 function throwNoSuchMethod(obj, name, pArgs, nArgs, extras) {
18 throw new core.NoSuchMethodError(obj, name, pArgs, nArgs, extras); 19 operations.throw(new core.NoSuchMethodError(obj, name, pArgs, nArgs, extras) );
19 } 20 }
20 exports.throwNoSuchMethod = throwNoSuchMethod; 21 exports.throwNoSuchMethod = throwNoSuchMethod;
21 22
22 function throwCastError(actual, type) { 23 function throwCastError(actual, type) {
23 throw new _js_helper.CastErrorImplementation(actual, type); 24 operations.throw(new _js_helper.CastErrorImplementation(actual, type));
24 } 25 }
25 exports.throwCastError = throwCastError; 26 exports.throwCastError = throwCastError;
26 27
27 function throwAssertionError() { 28 function throwAssertionError() {
28 throw new core.AssertionError(); 29 operations.throw(new core.AssertionError());
29 } 30 }
30 exports.throwAssertionError = throwAssertionError; 31 exports.throwAssertionError = throwAssertionError;
31 }); 32 });
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/_types.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698