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

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

Issue 1143953004: Fixes for sunflower (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | lib/runtime/dart_runtime.js » ('j') | lib/runtime/dart_runtime.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_js_helper.js
diff --git a/lib/runtime/dart/_js_helper.js b/lib/runtime/dart/_js_helper.js
index ec660ff06b55022c87bf61f76c2490063497e223..b919c76462bf1196813a678a33ae36ffd6c551de 100644
--- a/lib/runtime/dart/_js_helper.js
+++ b/lib/runtime/dart/_js_helper.js
@@ -1893,7 +1893,7 @@ var _isolate_helper = dart.lazyImport(_isolate_helper);
}
static parseInt(source, radix, handleError) {
if (handleError == null)
- handleError = dart.as(Primitives._throwFormatException, __CastType0);
+ handleError = Primitives._throwFormatException;
checkString(source);
let match = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(source);
let digitsIndex = 1;
@@ -1945,7 +1945,7 @@ var _isolate_helper = dart.lazyImport(_isolate_helper);
static parseDouble(source, handleError) {
checkString(source);
if (handleError == null)
- handleError = dart.as(Primitives._throwFormatException, __CastType2);
+ handleError = Primitives._throwFormatException;
if (!/^\s*[+-]?(?:Infinity|NaN|(?:\.\d+|\d+(?:\.\d*)?)(?:[eE][+-]?\d+)?)\s*$/.test(source)) {
return handleError(source);
}
@@ -2272,7 +2272,7 @@ var _isolate_helper = dart.lazyImport(_isolate_helper);
statics: () => ({
initializeStatics: [dart.void, [core.int]],
objectHashCode: [core.int, [core.Object]],
- _throwFormatException: [core.Object, [core.String]],
+ _throwFormatException: [core.Null, [core.String]],
parseInt: [core.int, [core.String, core.int, dart.functionType(core.int, [core.String])]],
parseDouble: [core.double, [core.String, dart.functionType(core.double, [core.String])]],
formatType: [core.String, [core.String, core.List]],
@@ -4154,8 +4154,6 @@ var _isolate_helper = dart.lazyImport(_isolate_helper);
throw new MainError("'main' expects too many parameters.");
}
dart.fn(mainHasTooManyParameters, dart.void, []);
- let __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.int, [core.String]));
- let __CastType2 = dart.typedef('__CastType2', () => dart.functionType(core.double, [core.String]));
// Exports:
exports.NoSideEffects = NoSideEffects;
exports.NoThrows = NoThrows;
« no previous file with comments | « no previous file | lib/runtime/dart_runtime.js » ('j') | lib/runtime/dart_runtime.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698