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

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

Issue 1530563003: Generate all runtime files from dart. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merged master 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/isolate.js ('k') | lib/runtime/dart/math.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/js.js
diff --git a/lib/runtime/dart/js.js b/lib/runtime/dart/js.js
index 7568271f5693a4c0798b61a81b07d789ef508f62..de81b79fc2b8464b56030b5a7948c34bee836c3f 100644
--- a/lib/runtime/dart/js.js
+++ b/lib/runtime/dart/js.js
@@ -1,5 +1,5 @@
dart_library.library('dart/js', null, /* Imports */[
- "dart/_runtime",
+ 'dart/_runtime',
'dart/core',
'dart/collection',
'dart/_js_helper'
@@ -343,10 +343,8 @@ dart_library.library('dart/js', null, /* Imports */[
return wrapper;
}
dart.fn(_wrapDartFunction);
- function _convertToDart(o, isBrowserType) {
- if (isBrowserType === void 0) isBrowserType = null;
- if (isBrowserType == null) isBrowserType = _isBrowserType;
- if (o == null || typeof o == "string" || typeof o == "number" || typeof o == "boolean" || dart.notNull(dart.dcall(isBrowserType, o))) {
+ function _convertToDart(o) {
+ if (o == null || typeof o == "string" || typeof o == "number" || typeof o == "boolean" || dart.notNull(_isBrowserType(o))) {
return o;
} else if (o instanceof Date) {
let ms = o.getTime();
@@ -357,7 +355,7 @@ dart_library.library('dart/js', null, /* Imports */[
return _putIfAbsent(_dartProxies, o, _wrapToDart);
}
}
- dart.fn(_convertToDart, core.Object, [dart.dynamic], [dart.functionType(core.bool, [dart.dynamic])]);
+ dart.fn(_convertToDart, core.Object, [dart.dynamic]);
function _wrapToDart(o) {
if (typeof o == "function") {
return new JsFunction._fromJs(o);
« no previous file with comments | « lib/runtime/dart/isolate.js ('k') | lib/runtime/dart/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698