diff options
author | Shu-yu Guo <shu@rfrn.org> | 2017-02-07 08:17:31 -0800 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2017-02-07 11:17:31 -0500 |
commit | a72ee6d91275aa6524e84a9b7070103411ef2689 (patch) | |
tree | a1d9c9ce58036edff2e278b716d7947bcf43e416 /test/built-ins/Atomics/load/non-views.js | |
parent | 204266794c93dc917008c9db68e34cb9f94db1d2 (diff) | |
download | qtdeclarative-testsuites-a72ee6d91275aa6524e84a9b7070103411ef2689.tar.gz |
SharedArrayBuffer and Atomics tests (#839)
Diffstat (limited to 'test/built-ins/Atomics/load/non-views.js')
-rw-r--r-- | test/built-ins/Atomics/load/non-views.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/built-ins/Atomics/load/non-views.js b/test/built-ins/Atomics/load/non-views.js new file mode 100644 index 000000000..96dcb1562 --- /dev/null +++ b/test/built-ins/Atomics/load/non-views.js @@ -0,0 +1,12 @@ +// Copyright (C) 2017 Mozilla Corporation. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: > + Test Atomics.load on view values other than TypedArrays +includes: [testAtomics.js] +---*/ + +testWithAtomicsNonViewValues(function(view) { + assert.throws(TypeError, (() => Atomics.load(view, 0))); +}); |