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

Unified Diff: src/typedarray.js

Issue 1384443002: [es6] Fix missing bits for full @@toPrimitive support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove useless cctest. Created 5 years, 3 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: src/typedarray.js
diff --git a/src/typedarray.js b/src/typedarray.js
index b45d304514e81c3c2052596d36769d548808772a..48848b1513ee99a19a214470c1f1ae78843cff91 100644
--- a/src/typedarray.js
+++ b/src/typedarray.js
@@ -37,12 +37,6 @@ endmacro
TYPED_ARRAYS(DECLARE_GLOBALS)
-var ToNumber;
-
-utils.Import(function(from) {
- ToNumber = from.ToNumber;
-});
-
var InternalArray = utils.InternalArray;
// --------------- Typed Arrays ---------------------
@@ -463,7 +457,7 @@ function DataViewSetTYPENAMEJS(offset, value, little_endian) {
}
if (%_ArgumentsLength() < 2) throw MakeTypeError(kInvalidArgument);
offset = $toPositiveInteger(offset, kInvalidDataViewAccessorOffset);
- %DataViewSetTYPENAME(this, offset, TO_NUMBER_INLINE(value), !!little_endian);
+ %DataViewSetTYPENAME(this, offset, TO_NUMBER(value), !!little_endian);
}
endmacro
« no previous file with comments | « src/string.js ('k') | src/v8natives.js » ('j') | test/cctest/compiler/test-run-jscalls.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698