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

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

Issue 1530563003: Generate all runtime files from dart. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Reverted to new .dart files in input_sdk: please compare them against previous patchset Created 5 years 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/dart/_utils.js
diff --git a/lib/runtime/dart/_utils.js b/lib/runtime/dart/_utils.js
index 84ede046b14822ad6526d280f4c2cdd6ac55a244..706eb4d8c435b1fa871ddd5ad95307a5062d55a8 100644
--- a/lib/runtime/dart/_utils.js
+++ b/lib/runtime/dart/_utils.js
@@ -1,6 +1,6 @@
dart_library.library('dart/_utils', null, /* Imports */[
], /* Lazy imports */[
-], function(exports, dart) {
+], function(exports) {
'use strict';
const defineProperty = Object.defineProperty;
const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
@@ -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) {
@@ -76,7 +76,7 @@ dart_library.library('dart/_utils', null, /* Imports */[
function copyProperties(to, from) {
return copyTheseProperties(to, from, getOwnNamesAndSymbols(from));
}
- function export_(to, from, show, hide) {
+ function export$(to, from, show, hide) {
if (show == void 0 || show.length == 0) {
show = getOwnNamesAndSymbols(from);
}
@@ -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;
@@ -103,5 +103,5 @@ dart_library.library('dart/_utils', null, /* Imports */[
exports.defineMemoizedGetter = defineMemoizedGetter;
exports.copyTheseProperties = copyTheseProperties;
exports.copyProperties = copyProperties;
- exports.export_ = export_;
+ exports.export = export$;
});

Powered by Google App Engine
This is Rietveld 408576698