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

Unified Diff: test/mjsunit/messages.js

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Back out changes to include/v8.h Created 5 years, 5 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/mjsunit/harmony/simd.js ('k') | test/mjsunit/samevalue.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/messages.js
diff --git a/test/mjsunit/messages.js b/test/mjsunit/messages.js
index c30e59f3e17a6a755531c43d192b00a82821a630..9b3ca18d7b1b82b308b10b570695bce7530ec673 100644
--- a/test/mjsunit/messages.js
+++ b/test/mjsunit/messages.js
@@ -3,7 +3,7 @@
// found in the LICENSE file.
// Flags: --stack-size=100 --harmony --harmony-reflect --harmony-arrays
-// Flags: --harmony-regexps --strong-mode
+// Flags: --harmony-regexps --harmony-simd --strong-mode
function test(f, expected, type) {
try {
@@ -323,6 +323,11 @@ test(function() {
1 + Symbol();
}, "Cannot convert a Symbol value to a number", TypeError);
+// kSimdToNumber
+test(function() {
+ 1 + SIMD.float32x4(1, 2, 3, 4);
+}, "Cannot convert a SIMD value to a number", TypeError);
+
// kUndefinedOrNullToObject
test(function() {
Array.prototype.toString.call(null);
« no previous file with comments | « test/mjsunit/harmony/simd.js ('k') | test/mjsunit/samevalue.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698