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

Unified Diff: lib/runtime/dart/_js_helper.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/_js_helper.js
diff --git a/lib/runtime/dart/_js_helper.js b/lib/runtime/dart/_js_helper.js
index 0c2a3020752c4651e79d70fda4917deef3a65f2d..2a09e5a8f7daa710eef54989f13b530c3f1f2c31 100644
--- a/lib/runtime/dart/_js_helper.js
+++ b/lib/runtime/dart/_js_helper.js
@@ -2,10 +2,11 @@ dart_library.library('dart/_js_helper', null, /* Imports */[
"dart/_runtime",
'dart/core',
'dart/collection',
+ 'dart/_utils',
'dart/_interceptors',
'dart/_foreign_helper'
], /* Lazy imports */[
-], function(exports, dart, core, collection, _interceptors, _foreign_helper) {
+], function(exports, dart, core, collection, utils, _interceptors, _foreign_helper) {
'use strict';
let dartx = dart.dartx;
class NoThrows extends core.Object {
@@ -500,12 +501,12 @@ dart_library.library('dart/_js_helper', null, /* Imports */[
}
dart.fn(getRuntimeType, core.Type, [dart.dynamic]);
function getIndex(array, index) {
- dart.assert(isJsArray(array));
+ utils.assert(isJsArray(array));
return array[index];
}
dart.fn(getIndex, dart.dynamic, [dart.dynamic, core.int]);
function getLength(array) {
- dart.assert(isJsArray(array));
+ utils.assert(isJsArray(array));
return array.length;
}
dart.fn(getLength, core.int, [dart.dynamic]);

Powered by Google App Engine
This is Rietveld 408576698