Index: test/mjsunit/harmony/set-prototype-of.js |
diff --git a/test/mjsunit/harmony/set-prototype-of.js b/test/mjsunit/harmony/set-prototype-of.js |
index e06215a0edfcca65a84b4524f017c9805e856d22..810220d1a8f217a773c3c31da10bea9ca3ef4d8e 100644 |
--- a/test/mjsunit/harmony/set-prototype-of.js |
+++ b/test/mjsunit/harmony/set-prototype-of.js |
@@ -64,9 +64,15 @@ |
function TestSetPrototypeOfCoercibleValues() { |
for (var i = 0; i < coercibleValues.length; i++) { |
var value = coercibleValues[i]; |
- var proto = Object.getPrototypeOf(value); |
+ assertThrows(function() { |
+ Object.getPrototypeOf(value); |
+ }, TypeError); |
+ |
assertEquals(Object.setPrototypeOf(value, {}), value); |
- assertSame(proto, Object.getPrototypeOf(value)); |
+ |
+ assertThrows(function() { |
+ Object.getPrototypeOf(value); |
+ }, TypeError); |
} |
} |
TestSetPrototypeOfCoercibleValues(); |