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

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

Issue 2852053002: Update documentation on trignometric functions. (Closed)
Patch Set: Update fingerprints. Created 3 years, 8 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 | « runtime/vm/method_recognizer.h ('k') | sdk/lib/math/math.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/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 0179c4f68f444a26d15ce674aad5c9beaa0c3b6a..5148540229c88ee7d1838ba9ecdb5f0b6b04f7c5 100644
--- a/sdk/lib/_internal/js_runtime/lib/math_patch.dart
+++ b/sdk/lib/_internal/js_runtime/lib/math_patch.dart
@@ -11,13 +11,13 @@ import 'dart:typed_data' show ByteData;
double sqrt(num x) => JS('num', r'Math.sqrt(#)', checkNum(x));
@patch
-double sin(num x) => JS('num', r'Math.sin(#)', checkNum(x));
+double sin(num radians) => JS('num', r'Math.sin(#)', checkNum(radians));
@patch
-double cos(num x) => JS('num', r'Math.cos(#)', checkNum(x));
+double cos(num radians) => JS('num', r'Math.cos(#)', checkNum(radians));
@patch
-double tan(num x) => JS('num', r'Math.tan(#)', checkNum(x));
+double tan(num radians) => JS('num', r'Math.tan(#)', checkNum(radians));
@patch
double acos(num x) => JS('num', r'Math.acos(#)', checkNum(x));
« no previous file with comments | « runtime/vm/method_recognizer.h ('k') | sdk/lib/math/math.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698