summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js')
-rw-r--r--test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js44
1 files changed, 22 insertions, 22 deletions
diff --git a/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js b/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js
index 978f42af6..37484659b 100644
--- a/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js
+++ b/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js
@@ -35,30 +35,30 @@ features: [TypedArray, Symbol.species]
---*/
testWithTypedArrayConstructors(function(TA) {
- var speciesCallCount = 0;
- var bufferConstructor = Object.defineProperty({}, Symbol.species, {
- get: function() {
- speciesCallCount += 1;
- $DETACHBUFFER(ta.buffer);
- return speciesConstructor;
- }
- });
+ var speciesCallCount = 0;
+ var bufferConstructor = Object.defineProperty({}, Symbol.species, {
+ get: function() {
+ speciesCallCount += 1;
+ $DETACHBUFFER(ta.buffer);
+ return speciesConstructor;
+ }
+ });
- var prototypeCallCount = 0;
- var speciesConstructor = Object.defineProperty(function(){}.bind(), "prototype", {
- get: function() {
- prototypeCallCount += 1;
- return null;
- }
- });
+ var prototypeCallCount = 0;
+ var speciesConstructor = Object.defineProperty(function() {}.bind(), "prototype", {
+ get: function() {
+ prototypeCallCount += 1;
+ return null;
+ }
+ });
- var ta = new TA(0);
- ta.buffer.constructor = bufferConstructor;
+ var ta = new TA(0);
+ ta.buffer.constructor = bufferConstructor;
- assert.throws(TypeError, function() {
- new TA(ta);
- }, "TypeError thrown for detached source buffer");
+ assert.throws(TypeError, function() {
+ new TA(ta);
+ }, "TypeError thrown for detached source buffer");
- assert.sameValue(speciesCallCount, 1, "@@species getter called once");
- assert.sameValue(prototypeCallCount, 1, "prototype getter called once");
+ assert.sameValue(speciesCallCount, 1, "@@species getter called once");
+ assert.sameValue(prototypeCallCount, 1, "prototype getter called once");
});