mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 05:55:36 +02:00
Atomics: fix mispelled harness function name
This commit is contained in:
parent
4adc41eccf
commit
7e603ae236
@ -9,7 +9,7 @@ defines:
|
|||||||
- intArrayConstructors
|
- intArrayConstructors
|
||||||
- TypedArray
|
- TypedArray
|
||||||
- testWithTypedArrayConstructors
|
- testWithTypedArrayConstructors
|
||||||
- testWithNonSharableTypedArrayConstructors
|
- testWithNonShareableTypedArrayConstructors
|
||||||
- testTypedArrayConversions
|
- testTypedArrayConversions
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ function testWithTypedArrayConstructors(f, selected) {
|
|||||||
* @param {typedArrayConstructorCallback} f - the function to call for each typed array constructor.
|
* @param {typedArrayConstructorCallback} f - the function to call for each typed array constructor.
|
||||||
* @param {Array} selected - An optional Array with filtered typed arrays
|
* @param {Array} selected - An optional Array with filtered typed arrays
|
||||||
*/
|
*/
|
||||||
function testWithNonSharableTypedArrayConstructors(f) {
|
function testWithNonShareableTypedArrayConstructors(f) {
|
||||||
testWithTypedArrayConstructors(f, [
|
testWithTypedArrayConstructors(f, [
|
||||||
Float64Array,
|
Float64Array,
|
||||||
Float32Array,
|
Float32Array,
|
||||||
|
@ -11,7 +11,7 @@ features: [ArrayBuffer, Atomics, TypedArray]
|
|||||||
|
|
||||||
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
||||||
|
|
||||||
testWithNonSharableTypedArrayConstructors(function(TA) {
|
testWithNonShareableTypedArrayConstructors(function(TA) {
|
||||||
const view = new TA(buffer);
|
const view = new TA(buffer);
|
||||||
|
|
||||||
assert.throws(TypeError, function() {
|
assert.throws(TypeError, function() {
|
||||||
|
@ -11,7 +11,7 @@ features: [ArrayBuffer, Atomics, TypedArray]
|
|||||||
|
|
||||||
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
||||||
|
|
||||||
testWithNonSharableTypedArrayConstructors(function(TA) {
|
testWithNonShareableTypedArrayConstructors(function(TA) {
|
||||||
const view = new TA(buffer);
|
const view = new TA(buffer);
|
||||||
|
|
||||||
assert.throws(TypeError, function() {
|
assert.throws(TypeError, function() {
|
||||||
|
@ -11,7 +11,7 @@ features: [ArrayBuffer, Atomics, TypedArray]
|
|||||||
|
|
||||||
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
||||||
|
|
||||||
testWithNonSharableTypedArrayConstructors(function(TA) {
|
testWithNonShareableTypedArrayConstructors(function(TA) {
|
||||||
const view = new TA(buffer);
|
const view = new TA(buffer);
|
||||||
|
|
||||||
assert.throws(TypeError, function() {
|
assert.throws(TypeError, function() {
|
||||||
|
@ -11,7 +11,7 @@ features: [ArrayBuffer, Atomics, TypedArray]
|
|||||||
|
|
||||||
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
||||||
|
|
||||||
testWithNonSharableTypedArrayConstructors(function(TA) {
|
testWithNonShareableTypedArrayConstructors(function(TA) {
|
||||||
const view = new TA(buffer);
|
const view = new TA(buffer);
|
||||||
|
|
||||||
assert.throws(TypeError, function() {
|
assert.throws(TypeError, function() {
|
||||||
|
@ -11,7 +11,7 @@ features: [ArrayBuffer, Atomics, TypedArray]
|
|||||||
|
|
||||||
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
||||||
|
|
||||||
testWithNonSharableTypedArrayConstructors(function(TA) {
|
testWithNonShareableTypedArrayConstructors(function(TA) {
|
||||||
const view = new TA(buffer);
|
const view = new TA(buffer);
|
||||||
assert.throws(TypeError, function() {
|
assert.throws(TypeError, function() {
|
||||||
Atomics.load(view, 0);
|
Atomics.load(view, 0);
|
||||||
|
@ -11,7 +11,7 @@ features: [ArrayBuffer, Atomics, TypedArray]
|
|||||||
|
|
||||||
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
||||||
|
|
||||||
testWithNonSharableTypedArrayConstructors(function(TA) {
|
testWithNonShareableTypedArrayConstructors(function(TA) {
|
||||||
const view = new TA(buffer);
|
const view = new TA(buffer);
|
||||||
|
|
||||||
assert.throws(TypeError, function() {
|
assert.throws(TypeError, function() {
|
||||||
|
@ -11,7 +11,7 @@ features: [ArrayBuffer, Atomics, TypedArray]
|
|||||||
|
|
||||||
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
||||||
|
|
||||||
testWithNonSharableTypedArrayConstructors(function(TA) {
|
testWithNonShareableTypedArrayConstructors(function(TA) {
|
||||||
const view = new TA(buffer);
|
const view = new TA(buffer);
|
||||||
|
|
||||||
assert.throws(TypeError, function() {
|
assert.throws(TypeError, function() {
|
||||||
|
@ -11,7 +11,7 @@ features: [ArrayBuffer, Atomics, TypedArray]
|
|||||||
|
|
||||||
const buffer = new ArrayBuffer(16);
|
const buffer = new ArrayBuffer(16);
|
||||||
|
|
||||||
testWithNonSharableTypedArrayConstructors(function(TA) {
|
testWithNonShareableTypedArrayConstructors(function(TA) {
|
||||||
const view = new TA(buffer);
|
const view = new TA(buffer);
|
||||||
|
|
||||||
assert.throws(TypeError, function() {
|
assert.throws(TypeError, function() {
|
||||||
|
@ -11,7 +11,7 @@ features: [ArrayBuffer, Atomics, TypedArray]
|
|||||||
|
|
||||||
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
const buffer = new ArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4);
|
||||||
|
|
||||||
testWithNonSharableTypedArrayConstructors(function(TA) {
|
testWithNonShareableTypedArrayConstructors(function(TA) {
|
||||||
const view = new TA(buffer);
|
const view = new TA(buffer);
|
||||||
|
|
||||||
assert.throws(TypeError, function() {
|
assert.throws(TypeError, function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user