Index: tool/input_sdk/lib/js/dart2js/js_dart2js.dart |
diff --git a/tool/input_sdk/lib/js/dart2js/js_dart2js.dart b/tool/input_sdk/lib/js/dart2js/js_dart2js.dart |
index 08449bd25534f3fc41a05a851a1f618687327f81..da084509b49496b3d1c0be2c6fe51916304039cc 100644 |
--- a/tool/input_sdk/lib/js/dart2js/js_dart2js.dart |
+++ b/tool/input_sdk/lib/js/dart2js/js_dart2js.dart |
@@ -475,13 +475,12 @@ dynamic _wrapDartFunction(f) { |
// converts a Dart object to a reference to a native JS object |
// which might be a DartObject JS->Dart proxy |
-Object _convertToDart(o, [bool isBrowserType(x)]) { |
- if (isBrowserType == null) isBrowserType = _isBrowserType; |
+Object _convertToDart(o) { |
if (JS('bool', '# == null', o) || |
JS('bool', 'typeof # == "string"', o) || |
JS('bool', 'typeof # == "number"', o) || |
JS('bool', 'typeof # == "boolean"', o) || |
- isBrowserType(o)) { |
+ _isBrowserType(o)) { |
return o; |
} else if (JS('bool', '# instanceof Date', o)) { |
var ms = JS('num', '#.getTime()', o); |