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

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

Issue 1580413002: Add a `@JSExportName` annotation for internal use in the runtime (use it to export dart.assert inst… (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: made _emitTopLevelName.suffix a named arg 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/_types.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_utils.js
diff --git a/lib/runtime/dart/_utils.js b/lib/runtime/dart/_utils.js
index 84ede046b14822ad6526d280f4c2cdd6ac55a244..3f28766107ba8a254bb4dff5ee8697b3ccfe81a3 100644
--- a/lib/runtime/dart/_utils.js
+++ b/lib/runtime/dart/_utils.js
@@ -22,7 +22,7 @@ dart_library.library('dart/_utils', null, /* Imports */[
function throwInternalError(message) {
throw Error(message);
}
- function assert_(condition) {
+ function assert(condition) {
if (!condition) throwInternalError("The compiler is broken: failed assert");
}
function getOwnNamesAndSymbols(obj) {
@@ -95,7 +95,7 @@ dart_library.library('dart/_utils', null, /* Imports */[
exports.StrongModeError = StrongModeError;
exports.throwStrongModeError = throwStrongModeError;
exports.throwInternalError = throwInternalError;
- exports.assert_ = assert_;
+ exports.assert = assert;
exports.getOwnNamesAndSymbols = getOwnNamesAndSymbols;
exports.safeGetOwnProperty = safeGetOwnProperty;
exports.defineLazyProperty = defineLazyProperty;
« no previous file with comments | « lib/runtime/dart/_types.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698