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

Unified Diff: test/mjsunit/compiler/regress-447567.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 | « src/objects.cc ('k') | test/mjsunit/messages.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/regress-447567.js
diff --git a/test/mjsunit/compiler/regress-447567.js b/test/mjsunit/compiler/regress-447567.js
index c348debee25fe3b3a909e163998b85088d605902..7aaada02c7fa4c6e8651c5288ebacabb570277ae 100644
--- a/test/mjsunit/compiler/regress-447567.js
+++ b/test/mjsunit/compiler/regress-447567.js
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-assertThrows(function() {
- [0].every(function(){ Object.seal((new Int8Array())); });
-})
+assertThrows(function () {
+ Object.freeze(new Int8Array(1))
+});
assertThrows(function() {
"use strict";
« no previous file with comments | « src/objects.cc ('k') | test/mjsunit/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698