2015-01-13 08:40:39 +00:00
|
|
|
// Copyright 2015 the V8 project authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2015-10-26 11:07:48 +00:00
|
|
|
assertThrows(function () {
|
|
|
|
Object.freeze(new Int8Array(1))
|
|
|
|
});
|
2015-01-13 08:40:39 +00:00
|
|
|
|
|
|
|
assertThrows(function() {
|
|
|
|
"use strict";
|
|
|
|
const v = 42;
|
|
|
|
v += 1;
|
|
|
|
});
|