Unify indentation and add .editorconfig (#973)

This commit is contained in:
Mathias Bynens 2017-04-13 16:37:32 +02:00 committed by Leo Balter
parent 96aa8c77b3
commit a621155bcd
17 changed files with 1488 additions and 1473 deletions

16
.editorconfig Normal file
View File

@ -0,0 +1,16 @@
root = true
[*]
charset = utf-8
indent_style = tab
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[{README.md,package.json,.travis.yml,*.sh,*.js}]
indent_style = space
indent_size = 2
[{.jshintrc,*.py}]
indent_style = space
indent_size = 4

View File

@ -44,11 +44,12 @@ var $LocalTZ,
var month = 1000 * 60 * 60 * 24 * 30;
for (var step = month; step > 0; step = Math.floor(step / 3)) {
if (!predicate(current)) {
while (!predicate(current))
while (!predicate(current)) {
current = new Date(current.getTime() + step);
current = new Date(current.getTime() - step);
}
}
}
while (!predicate(current)) {
current = new Date(current.getTime() + 1);
}

View File

@ -124,4 +124,3 @@ function verifyNotConfigurable(obj, name) {
$ERROR("Expected obj[" + String(name) + "] NOT to be configurable, but was.");
}
}

View File

@ -254,7 +254,7 @@ if (typeof simdPhase2 !== "undefined") {
view: Float64Array,
buffer: _f64x2,
mulFn: binaryMul,
}
};
var bool64x2 = {
name: "Bool64x2",
@ -263,7 +263,7 @@ if (typeof simdPhase2 !== "undefined") {
lanes: 2,
laneSize: 8,
interestingValues: [true, false],
}
};
float64x2.boolType = bool64x2;

View File

@ -121,4 +121,3 @@ function testBuiltInObject(obj, isFunction, isConstructor, properties, length) {
// passed the complete test!
return true;
}

View File

@ -1202,4 +1202,3 @@ function testArraysAreSame(expected, actual) {
}
return true;
}

View File

@ -4,7 +4,7 @@ if(Promise === undefined && this.setTimeout === undefined){
$ERROR("Async test capability is not supported in your test environment");
}
if(Promise !== undefined && this.setTimeout === undefined)
if (Promise !== undefined && this.setTimeout === undefined) {
(function(that) {
that.setTimeout = function(callback, delay) {
var p = Promise.resolve();
@ -20,3 +20,4 @@ if(Promise !== undefined && this.setTimeout === undefined)
p.then(check);
}
})(this);
}