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

Unified Diff: test/mjsunit/harmony/typedarrays.js

Issue 1038313004: fix special index parsing (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: NaN test Created 5 years, 9 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 | « test/cctest/test-conversions.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/typedarrays.js
diff --git a/test/mjsunit/harmony/typedarrays.js b/test/mjsunit/harmony/typedarrays.js
index 0cdb7ed396571366272d33ece0ab5d2ed57312ab..70bd17e3382db1cdb115d5aae6e48cf9141bc82a 100644
--- a/test/mjsunit/harmony/typedarrays.js
+++ b/test/mjsunit/harmony/typedarrays.js
@@ -530,10 +530,10 @@ function TestTypedArraysWithIllegalIndices() {
* assertEquals(undefined, a[-Infinity]);
*/
a[1.5] = 10;
- assertEquals(10, a[1.5]);
+ assertEquals(undefined, a[1.5]);
var nan = Math.sqrt(-1);
a[nan] = 5;
- assertEquals(5, a[nan]);
+ assertEquals(undefined, a[nan]);
var x = 0;
var y = -0;
@@ -579,10 +579,10 @@ function TestTypedArraysWithIllegalIndicesStrict() {
* assertEquals(undefined, a[-Infinity]);
*/
a[1.5] = 10;
- assertEquals(10, a[1.5]);
+ assertEquals(undefined, a[1.5]);
var nan = Math.sqrt(-1);
a[nan] = 5;
- assertEquals(5, a[nan]);
+ assertEquals(undefined, a[nan]);
var x = 0;
var y = -0;
« no previous file with comments | « test/cctest/test-conversions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698