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

Unified Diff: test/mjsunit/messages.js

Issue 1419823008: Fix Object.preventExtensions, .seal, .freeze on typed arrays (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/compiler/regress-447567.js ('k') | test/mjsunit/regress/regress-95920.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « test/mjsunit/compiler/regress-447567.js ('k') | test/mjsunit/regress/regress-95920.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698