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

Unified Diff: test/mjsunit/messages.js

Issue 2695653005: Revert of Remove SIMD.js from V8. (Closed)
Patch Set: Created 3 years, 10 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/perf.isolate » ('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 31c64924853db11fe6d6f8535a4f8c021b457268..30abc197e9b941bc80a038633409af23a1996dcb 100644
--- a/test/mjsunit/messages.js
+++ b/test/mjsunit/messages.js
@@ -3,6 +3,7 @@
// found in the LICENSE file.
// Flags: --stack-size=100 --harmony
+// Flags: --harmony-simd
function test(f, expected, type) {
try {
@@ -319,6 +320,11 @@
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/perf.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698