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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 assertEquals(["gts", "gvo"], trace); 97 assertEquals(["gts", "gvo"], trace);
98 98
99 toStringFunc = traceToString; 99 toStringFunc = traceToString;
100 toStringValue = "87"; 100 toStringValue = "87";
101 trace = []; 101 trace = [];
102 var nt = Number(ot); 102 var nt = Number(ot);
103 assertEquals(87, nt); 103 assertEquals(87, nt);
104 assertEquals(["gvo", "gts", "ts"], trace); 104 assertEquals(["gvo", "gts", "ts"], trace);
105 105
106 assertThrows('Number(Symbol())', TypeError); 106 assertThrows('Number(Symbol())', TypeError);
107
108 assertThrows('Number(SIMD.float32x4(1, 2, 3, 4))', TypeError);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698