blob: 1282b188f38e5a28747d06469583da6fa0b720a1 [file] [log] [blame]
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-sharedarraybuffer.prototype.slice
description: >
Throws a TypeError if `this` is an ArrayBuffer
features: [SharedArrayBuffer]
---*/
assert.throws(TypeError, function() {
var ab = new ArrayBuffer(0);
SharedArrayBuffer.prototype.slice.call(ab);
}, "`this` value cannot be an ArrayBuffer");