Index: test/mjsunit/object-seal.js |
diff --git a/test/mjsunit/object-seal.js b/test/mjsunit/object-seal.js |
index 3afddb9d60ccbcdf273e349618a4e353724a4114..f31f0b7dd2649513ce1a153bb358e05c95eb6091 100644 |
--- a/test/mjsunit/object-seal.js |
+++ b/test/mjsunit/object-seal.js |
@@ -251,7 +251,8 @@ assertOptimized(shift_call); |
Object.seal(obj); |
assertThrows(function() { push_call(obj); }, TypeError); |
assertThrows(function() { shift_call(obj); }, TypeError); |
-assertUnoptimized(push_call); |
+assertOptimized(push_call); |
+// shift() doesn't have a custom call generator, so deopt will occur. |
assertUnoptimized(shift_call); |
assertDoesNotThrow(function() { push_call(objControl); }); |
assertDoesNotThrow(function() { shift_call(objControl); }); |