whitespace and delete file (#1505)

This commit is contained in:
Valerie Young 2018-04-04 14:57:56 -04:00 committed by Leo Balter
parent f9e482b393
commit 714fdc9125
15 changed files with 55 additions and 108 deletions

View File

@ -26,12 +26,12 @@ var obj = {
[Symbol.iterator]() {
return {
next() {
return {
get done() {
throw thrownError;
},
value: 1
}
return {
get done() {
throw thrownError;
},
value: 1
}
}
};
}

View File

@ -28,12 +28,12 @@ var obj = {
[Symbol.iterator]() {
return {
next() {
return {
get value() {
throw thrownError;
},
done: false
}
return {
get value() {
throw thrownError;
},
done: false
}
}
};
}

View File

@ -31,15 +31,15 @@ var obj = {
[Symbol.iterator]() {
return {
next() {
return { value: 1, done: false };
return { value: 1, done: false };
},
return() {
return {
get done() {
throw thrownError;
},
value: 1
}
return {
get done() {
throw thrownError;
},
value: 1
}
}
};
}
@ -61,8 +61,8 @@ iter.next().then(function(result) {
assert.sameValue(err, thrownError, "Promise should be rejected with thrown error");
iter.next().then(({ done, value }) => {
assert.sameValue(done, true, 'the iterator is completed');
assert.sameValue(value, undefined, 'value is undefined');
assert.sameValue(done, true, 'the iterator is completed');
assert.sameValue(value, undefined, 'value is undefined');
}).then($DONE, $DONE);
}
).catch($DONE);

View File

@ -31,15 +31,15 @@ var obj = {
[Symbol.iterator]() {
return {
next() {
return { value: 1, done: false };
return { value: 1, done: false };
},
return() {
return {
get value() {
throw thrownError;
},
done: false
}
return {
get value() {
throw thrownError;
},
done: false
}
}
};
}
@ -61,8 +61,8 @@ iter.next().then(function(result) {
assert.sameValue(err, thrownError, "Promise should be rejected with thrown error");
iter.next().then(({ done, value }) => {
assert.sameValue(done, true, 'the iterator is completed');
assert.sameValue(value, undefined, 'value is undefined');
assert.sameValue(done, true, 'the iterator is completed');
assert.sameValue(value, undefined, 'value is undefined');
}).then($DONE, $DONE);
}
).catch($DONE);

View File

@ -31,13 +31,13 @@ var obj = {
[Symbol.iterator]() {
return {
next() {
return { value: 1, done: false };
return { value: 1, done: false };
},
return() {
return {
value: Promise.resolve(42),
done: true
};
return {
value: Promise.resolve(42),
done: true
};
}
};
}
@ -55,8 +55,8 @@ iter.next().then(function (result) {
assert.sameValue(result.value, 42, "Result.value should be unwrapped, got: " + result.value);
iter.next().then(({ done, value }) => {
assert.sameValue(done, true, 'the iterator is completed');
assert.sameValue(value, undefined, 'value is undefined');
assert.sameValue(done, true, 'the iterator is completed');
assert.sameValue(value, undefined, 'value is undefined');
}).then($DONE, $DONE);
}
).catch($DONE);

View File

@ -24,10 +24,10 @@ var obj = {
[Symbol.iterator]() {
return {
next() {
return { value: 1, done: false };
return { value: 1, done: false };
},
get return() {
throw thrownError;
throw thrownError;
}
}
}
@ -49,8 +49,8 @@ iter.next().then(function(result) {
assert.sameValue(err, thrownError, "Promise should be rejected with thrown error");
iter.next().then(({ done, value }) => {
assert.sameValue(done, true, 'the iterator is completed');
assert.sameValue(value, undefined, 'value is undefined');
assert.sameValue(done, true, 'the iterator is completed');
assert.sameValue(value, undefined, 'value is undefined');
}).then($DONE, $DONE);
}
).catch($DONE);

View File

@ -30,10 +30,10 @@ var obj = {
[Symbol.iterator]() {
return {
next() {
return { value: 1, done: false };
return { value: 1, done: false };
},
return() {
throw thrownError;
throw thrownError;
}
};
}
@ -55,8 +55,8 @@ iter.next().then(function(result) {
assert.sameValue(err, thrownError, "Promise should be rejected with thrown error");
iter.next().then(({ done, value }) => {
assert.sameValue(done, true, 'the iterator is completed');
assert.sameValue(value, undefined, 'value is undefined');
assert.sameValue(done, true, 'the iterator is completed');
assert.sameValue(value, undefined, 'value is undefined');
}).then($DONE, $DONE);
}
).catch($DONE);

View File

@ -28,10 +28,10 @@ var obj = {
[Symbol.iterator]() {
return {
next() {
return { value: 1, done: false };
return { value: 1, done: false };
},
return() {
return 1;
return 1;
}
};
}
@ -54,8 +54,8 @@ iter.next().then(function(result) {
assert(typeerror, "Expect TypeError, got: " + err);
iter.next().then(({ done, value }) => {
assert.sameValue(done, true, 'the iterator is completed');
assert.sameValue(value, undefined, 'value is undefined');
assert.sameValue(done, true, 'the iterator is completed');
assert.sameValue(value, undefined, 'value is undefined');
}).then($DONE, $DONE);
}
).catch($DONE);

View File

@ -25,7 +25,7 @@ var obj = {
[Symbol.iterator]() {
return {
next() {
return { value: 1, done: false };
return { value: 1, done: false };
}
};
}

View File

@ -11,7 +11,7 @@ info: |
4.Let q be ? ToNumber(timeout).
...
Null Return +0.
Boolean If argument is true, return 1. If argument is false, return +0.
Boolean If argument is true, return 1. If argument is false, return +0.
features: [ Atomics, SharedArrayBuffer, TypedArray ]
includes: [ atomicsHelper.js ]
---*/

View File

@ -10,7 +10,7 @@ info: |
4.Let q be ? ToNumber(timeout).
...
Undefined Return NaN.
Undefined Return NaN.
5.If q is NaN, let t be +, else let t be max(q, 0)
features: [ Atomics, SharedArrayBuffer, TypedArray ]
---*/

View File

@ -11,7 +11,7 @@ info: |
4.Let q be ? ToNumber(timeout).
...
Null Return +0.
Boolean If argument is true, return 1. If argument is false, return +0.
Boolean If argument is true, return 1. If argument is false, return +0.
features: [ Atomics ]
includes: [ atomicsHelper.js ]
---*/

View File

@ -10,7 +10,7 @@ info: |
4.Let q be ? ToNumber(timeout).
...
Boolean If argument is true, return 1. If argument is false, return +0.
Boolean If argument is true, return 1. If argument is false, return +0.
features: [ Atomics, SharedArrayBuffer, TypedArray ]
includes: [atomicsHelper.js]
---*/

View File

@ -10,7 +10,7 @@ info: |
4.Let q be ? ToNumber(timeout).
...
Undefined Return NaN.
Undefined Return NaN.
5.If q is NaN, let t be +, else let t be max(q, 0)
features: [ Atomics, SharedArrayBuffer, TypedArray ]
---*/

View File

@ -1,53 +0,0 @@
// Copyright (C) 2018 Valerie Young. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-typedarray-object
description: >
Return abrupt on undefined
info: |
TypedArray ( object )
This description applies only if the TypedArray function is called with at
least one argument and the Type of the first argument is Object and that
object does not have either a [[TypedArrayName]] or an [[ArrayBufferData]]
internal slot.
...
8. Repeat, while k < len
...
b. Let kValue be ? Get(arrayLike, Pk).
c. Perform ? Set(O, Pk, kValue, true).
...
[[Set]] ( P, V, Receiver)
...
2. If Type(P) is String and if SameValue(O, Receiver) is true, then
a. Let numericIndex be ! CanonicalNumericIndexString(P).
b. If numericIndex is not undefined, then
i. Return ? IntegerIndexedElementSet(O, numericIndex, V).
...
IntegerIndexedElementSet ( O, index, value )
...
5. If arrayTypeName is "BigUint64Array" or "BigInt64Array",
let numValue be ? ToBigInt(value).
...
ToBigInt ( argument )
Object, Apply the following steps:
1. Let prim be ? ToPrimitive(argument, hint Number).
2. Return the value that prim corresponds to in Table [BigInt Conversions]
BigInt Conversions
Argument Type: Undefined
Result: Throw a TypeError exception.
includes: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
---*/
testWithBigIntTypedArrayConstructors(function(TA) {
assert.throws(TypeError, function() {
new TA([undefined]);
}, "abrupt completion from undefined");
});