2015-06-19 16:14:03 +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-09-01 18:33:51 +00:00
|
|
|
// Flags: --harmony-sharedarraybuffer
|
2015-06-19 16:14:03 +00:00
|
|
|
var sab = new SharedArrayBuffer(8);
|
|
|
|
var ta = new Int32Array(sab);
|
|
|
|
ta.__defineSetter__('length', function() {;});
|
2016-03-25 21:52:15 +00:00
|
|
|
assertThrows(function() {
|
|
|
|
Atomics.compareExchange(ta, 4294967295, 0, 0);
|
|
|
|
}, RangeError);
|