Chromium Code Reviews| 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); |