mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1330006 - Fix various space related eslint errors. r=till
This commit is contained in:
parent
e0ca7bce95
commit
4562413d8c
@ -82,7 +82,7 @@ function LegacyGeneratorNext(val) {
|
||||
|
||||
try {
|
||||
return resumeGenerator(this, val, "next");
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
if (!LegacyGeneratorObjectIsClosed(this))
|
||||
GeneratorSetClosed(this);
|
||||
throw e;
|
||||
@ -102,7 +102,7 @@ function LegacyGeneratorThrow(val) {
|
||||
|
||||
try {
|
||||
return resumeGenerator(this, val, "throw");
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
if (!LegacyGeneratorObjectIsClosed(this))
|
||||
GeneratorSetClosed(this);
|
||||
throw e;
|
||||
|
@ -82,6 +82,6 @@ function Global_isNaN(number) {
|
||||
return Number_isNaN(ToNumber(number));
|
||||
}
|
||||
|
||||
function Global_isFinite(number){
|
||||
function Global_isFinite(number) {
|
||||
return Number_isFinite(ToNumber(number));
|
||||
}
|
||||
|
@ -12,11 +12,11 @@ function CountingSort(array, len, signed) {
|
||||
var min = 0;
|
||||
|
||||
// Map int8 values onto the uint8 range when storing in buffer.
|
||||
if (signed) {
|
||||
if (signed) {
|
||||
min = -128;
|
||||
}
|
||||
|
||||
for (var i = 0; i < 256; i++) {
|
||||
for (var i = 0; i < 256; i++) {
|
||||
buffer[i] = 0;
|
||||
}
|
||||
|
||||
@ -45,7 +45,7 @@ function CountingSort(array, len, signed) {
|
||||
|
||||
// Helper for RadixSort
|
||||
function ByteAtCol(x, pos) {
|
||||
return (x >> (pos * 8)) & 0xFF;
|
||||
return (x >> (pos * 8)) & 0xFF;
|
||||
}
|
||||
|
||||
function SortByColumn(array, len, aux, col) {
|
||||
@ -314,7 +314,7 @@ function Partition(array, from, to, comparefn) {
|
||||
var pivotIndex = i;
|
||||
|
||||
// Hoare partition method.
|
||||
for(;;) {
|
||||
for (;;) {
|
||||
do i++; while (comparefn(array[i], array[pivotIndex]) < 0);
|
||||
do j--; while (comparefn(array[j], array[pivotIndex]) > 0);
|
||||
if (i > j)
|
||||
|
@ -967,7 +967,7 @@ function TypeOfTypedObject(obj) {
|
||||
// TypedObject surface API methods (sequential implementations).
|
||||
|
||||
// Warning: user exposed!
|
||||
function TypedObjectArrayTypeBuild(a,b,c) {
|
||||
function TypedObjectArrayTypeBuild(a, b, c) {
|
||||
// Arguments : [depth], func
|
||||
|
||||
if (!IsObject(this) || !ObjectIsTypeDescr(this))
|
||||
|
Loading…
Reference in New Issue
Block a user