Index: test/mjsunit/messages.js |
diff --git a/test/mjsunit/messages.js b/test/mjsunit/messages.js |
index cb1d016ab09c17383e206f5f4847dd9bcf06e6f8..f6b82ec73a4cff34e337eeb77fe6d00cb662886a 100644 |
--- a/test/mjsunit/messages.js |
+++ b/test/mjsunit/messages.js |
@@ -62,10 +62,10 @@ test(function() { |
Array.prototype.shift.call(null); |
}, "Array.prototype.shift called on null or undefined", TypeError); |
-// kCannotPreventExtExternalArray |
+// kCannotFreezeArrayBufferView |
test(function() { |
- Object.preventExtensions(new Uint16Array(1)); |
-}, "Cannot prevent extension of an object with external array elements", TypeError); |
+ Object.freeze(new Uint16Array(1)); |
+}, "Cannot freeze array buffer views with elements", TypeError); |
// kConstAssign |
test(function() { |