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

Unified Diff: test/generated_sdk/lib/_internal/compiler/js_lib/native_typed_data.dart

Issue 1112403004: SDK fixes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Formatting fix Created 5 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
Index: test/generated_sdk/lib/_internal/compiler/js_lib/native_typed_data.dart
diff --git a/test/generated_sdk/lib/_internal/compiler/js_lib/native_typed_data.dart b/test/generated_sdk/lib/_internal/compiler/js_lib/native_typed_data.dart
index 2f94f86eaf190576dd12e062d1a3ed9cd186b2c3..4f159126f512cb0ff620ef6ddf03d117c17c0c55 100644
--- a/test/generated_sdk/lib/_internal/compiler/js_lib/native_typed_data.dart
+++ b/test/generated_sdk/lib/_internal/compiler/js_lib/native_typed_data.dart
@@ -556,12 +556,12 @@ class NativeByteData extends NativeTypedData implements ByteData {
* Throws [RangeError] if [byteOffset] is negative, or
* `byteOffset + 4` is greater than the length of this object.
*/
- num getFloat32(int byteOffset, [Endianness endian=Endianness.BIG_ENDIAN]) =>
+ double getFloat32(int byteOffset, [Endianness endian=Endianness.BIG_ENDIAN]) =>
_getFloat32(byteOffset, Endianness.LITTLE_ENDIAN == endian);
@JSName('getFloat32')
- @Returns('num')
- num _getFloat32(int byteOffset, [bool littleEndian]) native;
+ @Returns('double')
+ double _getFloat32(int byteOffset, [bool littleEndian]) native;
/**
* Returns the floating point number represented by the eight bytes at
@@ -571,12 +571,12 @@ class NativeByteData extends NativeTypedData implements ByteData {
* Throws [RangeError] if [byteOffset] is negative, or
* `byteOffset + 8` is greater than the length of this object.
*/
- num getFloat64(int byteOffset, [Endianness endian=Endianness.BIG_ENDIAN]) =>
+ double getFloat64(int byteOffset, [Endianness endian=Endianness.BIG_ENDIAN]) =>
_getFloat64(byteOffset, Endianness.LITTLE_ENDIAN == endian);
@JSName('getFloat64')
- @Returns('num')
- num _getFloat64(int byteOffset, [bool littleEndian]) native;
+ @Returns('double')
+ double _getFloat64(int byteOffset, [bool littleEndian]) native;
/**
* Returns the (possibly negative) integer represented by the two bytes at
@@ -890,9 +890,9 @@ abstract class NativeTypedArrayOfDouble
int get length => JS('JSUInt32', '#.length', this);
- num operator[](int index) {
+ double operator[](int index) {
_checkIndex(index, length);
- return JS('num', '#[#]', this, index);
+ return JS('double', '#[#]', this, index);
}
void operator[]=(int index, num value) {

Powered by Google App Engine
This is Rietveld 408576698