summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-access-throws.js
diff options
context:
space:
mode:
authorLeonardo Balter <leonardo.balter@gmail.com>2016-04-28 18:11:42 -0400
committerMike Pennisi <mike@mikepennisi.com>2016-05-27 15:59:14 -0400
commitf912927b1fa8421e18c9b440ac5e8b76521201d0 (patch)
tree30b9b4e6b9e48ec7359732cb2f75abf2f36ba000 /test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-access-throws.js
parent56b988883e3e1819cdc98b21c125be4c80f2bc24 (diff)
downloadqtdeclarative-testsuites-f912927b1fa8421e18c9b440ac5e8b76521201d0.tar.gz
[TypedArrays] Apply code consistency fixes after checks with JSHint
Diffstat (limited to 'test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-access-throws.js')
-rw-r--r--test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-access-throws.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-access-throws.js b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-access-throws.js
index aaad50a4b..fe6d62859 100644
--- a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-access-throws.js
+++ b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-access-throws.js
@@ -25,9 +25,8 @@ includes: [testTypedArray.js]
---*/
testWithTypedArrayConstructors(function(TA) {
- var sample1 = Int8Array;
- var sample2 = Int16Array;
- var sample = new (TA === Int8Array ? sample2 : sample1);
+ var OtherCtor = TA === Int8Array ? Int16Array : Int8Array;
+ var sample = new OtherCtor();
Object.defineProperty(sample.buffer, "constructor", {
get() {