built-ins/DataView/*: make all indentation consistent (depth & character) (#1416)

This commit is contained in:
Rick Waldron 2018-02-15 15:55:14 -05:00 committed by Leo Balter
parent a7ab6b4fd5
commit 4b5f07a9ff
22 changed files with 96 additions and 46 deletions

View File

@ -23,8 +23,16 @@ features: [DataView, ArrayBuffer, BigInt, arrow-function]
var buffer = new ArrayBuffer(1);
var sample = new DataView(buffer, 0);
var bo1 = { valueOf() { throw new Test262Error(); } };
var bo2 = { toString() { throw new Test262Error(); } };
var bo1 = {
valueOf() {
throw new Test262Error();
}
};
var bo2 = {
toString() {
throw new Test262Error();
}
};
assert.throws(Test262Error, () => sample.getBigInt64(bo1), "valueOf");

View File

@ -11,8 +11,16 @@ features: [DataView, ArrayBuffer, BigInt, arrow-function]
var buffer = new ArrayBuffer(1);
var sample = new DataView(buffer, 0);
var bo1 = { valueOf() { throw new Test262Error(); } };
var bo2 = { toString() { throw new Test262Error(); } };
var bo1 = {
valueOf() {
throw new Test262Error();
}
};
var bo2 = {
toString() {
throw new Test262Error();
}
};
assert.throws(Test262Error, () => sample.getBigUint64(bo1), "valueOf");

View File

@ -12,7 +12,11 @@ features: [DataView, ArrayBuffer, BigInt]
var buffer = new ArrayBuffer(8);
var sample = new DataView(buffer, 0);
var v = { valueOf() { throw new Test262Error(); } };
var v = {
valueOf() {
throw new Test262Error();
}
};
$DETACHBUFFER(buffer);
assert.throws(Test262Error, function() {

View File

@ -12,7 +12,9 @@ features: [DataView, ArrayBuffer, BigInt]
var dataView = new DataView(new ArrayBuffer(8), 0);
var poisoned = {
valueOf() { throw new Test262Error("valueOf called"); }
valueOf() {
throw new Test262Error("valueOf called");
}
};
assert.throws(RangeError, function() {

View File

@ -10,7 +10,11 @@ features: [DataView, ArrayBuffer, BigInt]
var dataView = new DataView(new ArrayBuffer(8), 0);
var poisoned = { valueOf() { throw new Test262Error(); } };
var poisoned = {
valueOf() {
throw new Test262Error();
}
};
assert.throws(Test262Error, function() {
dataView.setBigInt64(100, poisoned);

View File

@ -11,8 +11,16 @@ features: [DataView, ArrayBuffer, BigInt]
var buffer = new ArrayBuffer(8);
var sample = new DataView(buffer, 0);
var bo1 = { valueOf() { throw new Test262Error(); } };
var bo2 = { toString() { throw new Test262Error(); } };
var bo1 = {
valueOf() {
throw new Test262Error();
}
};
var bo2 = {
toString() {
throw new Test262Error();
}
};
assert.throws(Test262Error, function() {
sample.setBigInt64(0, bo1);

View File

@ -11,8 +11,16 @@ features: [DataView, ArrayBuffer, BigInt]
var buffer = new ArrayBuffer(1);
var sample = new DataView(buffer, 0);
var bo1 = { valueOf() { throw new Test262Error(); } };
var bo2 = { toString() { throw new Test262Error(); } };
var bo1 = {
valueOf() {
throw new Test262Error();
}
};
var bo2 = {
toString() {
throw new Test262Error();
}
};
assert.throws(Test262Error, function() {
sample.setBigInt64(bo1, 1n);

View File

@ -11,8 +11,16 @@ features: [DataView, ArrayBuffer, BigInt]
var buffer = new ArrayBuffer(12);
var sample = new DataView(buffer, 0);
var obj1 = { valueOf() { return 3; } };
var obj2 = { toString() { return 4; } };
var obj1 = {
valueOf() {
return 3;
}
};
var obj2 = {
toString() {
return 4;
}
};
sample.setBigInt64(0, 0n);
sample.setBigInt64(-0, 42n);