blob: 66810df9f912835c1634a27f65b75c5f0351f4aa [file] [log] [blame]
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Return value from [[ByteLength]] internal slot
---*/
var ab1 = new SharedArrayBuffer(0);
assert.sameValue(ab1.byteLength, 0);
var ab2 = new SharedArrayBuffer(42);
assert.sameValue(ab2.byteLength, 42);