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; |
}); |