diff options
author | Leonardo Balter <leonardo.balter@gmail.com> | 2016-04-28 18:11:42 -0400 |
---|---|---|
committer | Mike Pennisi <mike@mikepennisi.com> | 2016-05-27 15:59:14 -0400 |
commit | f912927b1fa8421e18c9b440ac5e8b76521201d0 (patch) | |
tree | 30b9b4e6b9e48ec7359732cb2f75abf2f36ba000 /test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-access-throws.js | |
parent | 56b988883e3e1819cdc98b21c125be4c80f2bc24 (diff) | |
download | qtdeclarative-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.js | 5 |
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() { |