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

Unified Diff: lib/runtime/dart/_errors.js

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/runtime/dart/_classes.js ('k') | lib/runtime/dart/_foreign_helper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_errors.js
diff --git a/lib/runtime/dart/_errors.js b/lib/runtime/dart/_errors.js
deleted file mode 100644
index 57a60d84e538eb4e9ec441d19317903d29a07863..0000000000000000000000000000000000000000
--- a/lib/runtime/dart/_errors.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-/*
- * This library encapsulates the core sdk errors that the runtime knows about.
- *
- */
-
-dart_library.library('dart/_errors', null, /* Imports */[
-], /* Lazy Imports */[
- 'dart/_operations',
- 'dart/core',
- 'dart/_js_helper'
-], function(exports, operations, core, _js_helper) {
- 'use strict';
-
- function throwNoSuchMethod(obj, name, pArgs, nArgs, extras) {
- operations.throw(new core.NoSuchMethodError(obj, name, pArgs, nArgs, extras));
- }
- exports.throwNoSuchMethod = throwNoSuchMethod;
-
- function throwCastError(actual, type) {
- operations.throw(new _js_helper.CastErrorImplementation(actual, type));
- }
- exports.throwCastError = throwCastError;
-
- function throwAssertionError() {
- operations.throw(new core.AssertionError());
- }
- exports.throwAssertionError = throwAssertionError;
-
- function throwNullValueError() {
- // TODO(vsm): Per spec, we should throw an NSM here. Technically, we ought
- // to thread through method info, but that uglifies the code and can't
- // actually be queried ... it only affects how the error is printed.
- operations.throw(new core.NoSuchMethodError(null,
- new core.Symbol('<Unexpected Null Value>'), null, null, null));
- }
- exports.throwNullValueError = throwNullValueError;
-});
« no previous file with comments | « lib/runtime/dart/_classes.js ('k') | lib/runtime/dart/_foreign_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698