blob: aa235bc4eaae2aed747f0d41b49c820063d2a566 [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// Copyright 2015 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Flags: --harmony-sharedarraybuffer
6var sab = new SharedArrayBuffer(8);
7var ta = new Int32Array(sab);
8ta.__defineSetter__('length', function() {;});
Ben Murdochda12d292016-06-02 14:46:10 +01009assertThrows(function() {
10 Atomics.compareExchange(ta, 4294967295, 0, 0);
11}, RangeError);