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

Unified Diff: lib/runtime/_errors.js

Issue 1298893003: Enable is and as checks on non-ground types (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Minor fixes 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 side-by-side diff with in-line comments
Download patch
Index: lib/runtime/_errors.js
diff --git a/lib/runtime/_errors.js b/lib/runtime/_errors.js
index 0bb1a0f903cd1382615380a2c6c61e1d369deef5..bd4f0b696f7a6ce6d0f9a841bffd62f6eca21fc9 100644
--- a/lib/runtime/_errors.js
+++ b/lib/runtime/_errors.js
@@ -29,4 +29,13 @@ dart_library.library('dart_runtime/_errors', null, /* Imports */[
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/_classes.js ('k') | lib/runtime/_operations.js » ('j') | lib/runtime/_operations.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698