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

Unified Diff: test/mjsunit/object-toprimitive.js

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove SIMD_OBJECT from native context fields. 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
Index: test/mjsunit/object-toprimitive.js
diff --git a/test/mjsunit/object-toprimitive.js b/test/mjsunit/object-toprimitive.js
index 34803ec93482668a13b3ec27303054505110ab93..cd0656c5c9d9185b9177f9c6896704ff6456f40e 100644
--- a/test/mjsunit/object-toprimitive.js
+++ b/test/mjsunit/object-toprimitive.js
@@ -25,6 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// Flags: --harmony-simd
rossberg 2015/07/10 11:38:20 If this test does not use SIMDs then this flag sho
bbudge 2015/07/10 13:21:17 I don't understand the comment. This test does add
rossberg 2015/07/10 13:25:45 Ah, sorry, I somehow got lost in the diffs. Please
+
// Test the ToPrimitive internal function used by ToNumber/ToString.
// Does it [[Get]] and [[Call]] the object's toString and valueOf properties
// correctly. Specifically, does it call [[Get]] only once per property.
@@ -104,3 +106,5 @@ assertEquals(87, nt);
assertEquals(["gvo", "gts", "ts"], trace);
assertThrows('Number(Symbol())', TypeError);
+
+assertThrows('Number(SIMD.float32x4(1, 2, 3, 4))', TypeError);

Powered by Google App Engine
This is Rietveld 408576698