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

Unified Diff: sdk/lib/_internal/js_runtime/lib/js_helper.dart

Issue 2857133008: dart2js: Improve code quality after min/max changes (Closed)
Patch Set: remove 'as T' to silence dart2js hint' Created 3 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 | sdk/lib/_internal/js_runtime/lib/math_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/js_runtime/lib/js_helper.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/js_helper.dart b/sdk/lib/_internal/js_runtime/lib/js_helper.dart
index b84ff432b148e51d09357732980b877ecbf615ea..d1866168b4859d69534c791d6f38d6bb8856f8ce 100644
--- a/sdk/lib/_internal/js_runtime/lib/js_helper.dart
+++ b/sdk/lib/_internal/js_runtime/lib/js_helper.dart
@@ -1739,6 +1739,7 @@ checkNull(object) {
return object;
}
+@NoInline()
checkNum(value) {
if (value is! num) throw argumentErrorValue(value);
return value;
« no previous file with comments | « no previous file | sdk/lib/_internal/js_runtime/lib/math_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698