Index: sdk/lib/_internal/js_runtime/lib/math_patch.dart |
diff --git a/sdk/lib/_internal/js_runtime/lib/math_patch.dart b/sdk/lib/_internal/js_runtime/lib/math_patch.dart |
index b37ba521b3e5b812409db9007d4274f04a33a1fa..c774c20a02b892825be9ec1613e1086fca65e60e 100644 |
--- a/sdk/lib/_internal/js_runtime/lib/math_patch.dart |
+++ b/sdk/lib/_internal/js_runtime/lib/math_patch.dart |
@@ -8,12 +8,18 @@ import 'dart:_js_helper' show patch, checkNum; |
import 'dart:typed_data' show ByteData; |
@patch |
-T min<T extends num>(T a, T b) => |
- JS('num', r'Math.min(#, #)', checkNum(a), checkNum(b)) as T; |
+T min<T extends num>(T a, T b) => JS( |
+ 'returns:num;depends:none;effects:none;gvn:true', |
+ r'Math.min(#, #)', |
+ checkNum(a), |
+ checkNum(b)); |
@patch |
-T max<T extends num>(T a, T b) => |
- JS('num', r'Math.max(#, #)', checkNum(a), checkNum(b)) as T; |
+T max<T extends num>(T a, T b) => JS( |
+ 'returns:num;depends:none;effects:none;gvn:true', |
+ r'Math.max(#, #)', |
+ checkNum(a), |
+ checkNum(b)); |
@patch |
double sqrt(num x) => JS('num', r'Math.sqrt(#)', checkNum(x)); |