From 4106a4309c02dc4edb28fcd1e0dd390737f82307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Mon, 6 Feb 2017 11:46:03 +0200 Subject: [PATCH] Normative: Correct same-sharedarraybuffer test in SharedArrayBuffer.prototype.slice --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index b440dc8ddd..56afe44df0 100644 --- a/spec.html +++ b/spec.html @@ -34150,7 +34150,7 @@

SharedArrayBuffer.prototype.slice( _start_, _end_ )

1. Let _ctor_ be ? SpeciesConstructor(_O_, %SharedArrayBuffer%). 1. Let _new_ be ? Construct(_ctor_, « _newLen_ »). 1. If _new_ does not have an [[ArrayBufferData]] internal slot, throw a *TypeError* exception. - 1. If SameValue(_new_, _O_) is *true*, throw a *TypeError* exception. + 1. If _new_.[[ArrayBufferData]] and _O_.[[ArrayBufferData]] are the same Shared Data Block values, throw a *TypeError* exception. 1. If _new_.[[ArrayBufferByteLength]] < _newLen_, throw a *TypeError* exception. 1. Let _fromBuf_ be _O_.[[ArrayBufferData]]. 1. Let _toBuf_ be _new_.[[ArrayBufferData]].