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

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

Issue 1554683002: Update to latest analyzer (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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_helper.js ('k') | lib/runtime/dart/_js_mirrors.js » ('j') | no next file with comments »
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 0c2a3020752c4651e79d70fda4917deef3a65f2d..6f89249f206603e58319c607bc81a77a9806c115 100644
--- a/lib/runtime/dart/_js_helper.js
+++ b/lib/runtime/dart/_js_helper.js
@@ -539,7 +539,7 @@ dart_library.library('dart/_js_helper', null, /* Imports */[
dart.throw(new core.FormatException(string));
}
static parseInt(source, radix, handleError) {
- if (handleError == null) handleError = dart.fn(s => dart.as(Primitives._throwFormatException(dart.as(s, core.String)), core.int), core.int, [dart.dynamic]);
+ if (handleError == null) handleError = dart.fn(s => dart.as(Primitives._throwFormatException(s), core.int), core.int, [core.String]);
checkString(source);
let match = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(source);
let digitsIndex = 1;
@@ -588,7 +588,7 @@ dart_library.library('dart/_js_helper', null, /* Imports */[
}
static parseDouble(source, handleError) {
checkString(source);
- if (handleError == null) handleError = dart.fn(s => dart.as(Primitives._throwFormatException(dart.as(s, core.String)), core.double), core.double, [dart.dynamic]);
+ if (handleError == null) handleError = dart.fn(s => dart.as(Primitives._throwFormatException(s), core.double), core.double, [core.String]);
if (!/^\s*[+-]?(?:Infinity|NaN|(?:\.\d+|\d+(?:\.\d*)?)(?:[eE][+-]?\d+)?)\s*$/.test(source)) {
return handleError(source);
}
@@ -890,7 +890,7 @@ dart_library.library('dart/_js_helper', null, /* Imports */[
class NullError extends core.Error {
NullError(message, match) {
this[_message] = message;
- this[_method] = match == null ? null : dart.as(match.method, core.String);
+ this[_method] = dart.as(match == null ? null : match.method, core.String);
super.Error();
}
toString() {
@@ -906,8 +906,8 @@ dart_library.library('dart/_js_helper', null, /* Imports */[
class JsNoSuchMethodError extends core.Error {
JsNoSuchMethodError(message, match) {
this[_message] = message;
- this[_method] = match == null ? null : dart.as(match.method, core.String);
- this[_receiver] = match == null ? null : dart.as(match.receiver, core.String);
+ this[_method] = dart.as(match == null ? null : match.method, core.String);
+ this[_receiver] = dart.as(match == null ? null : match.receiver, core.String);
super.Error();
}
toString() {
« no previous file with comments | « lib/runtime/dart/_isolate_helper.js ('k') | lib/runtime/dart/_js_mirrors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698