зеркало из https://github.com/mozilla/pjs.git
JavaScript Tests - add missing mode lines, no bug, not part of the build
This commit is contained in:
Родитель
afc273653b
Коммит
0280ac0667
|
@ -1,3 +1,4 @@
|
||||||
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||||
/* ***** BEGIN LICENSE BLOCK *****
|
/* ***** BEGIN LICENSE BLOCK *****
|
||||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||||
/* ***** BEGIN LICENSE BLOCK *****
|
/* ***** BEGIN LICENSE BLOCK *****
|
||||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||||
/* ***** BEGIN LICENSE BLOCK *****
|
/* ***** BEGIN LICENSE BLOCK *****
|
||||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||||
/* ***** BEGIN LICENSE BLOCK *****
|
/* ***** BEGIN LICENSE BLOCK *****
|
||||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||||
*
|
*
|
||||||
|
@ -100,15 +101,15 @@ function toSource(arr)
|
||||||
|
|
||||||
switch(true)
|
switch(true)
|
||||||
{
|
{
|
||||||
case (typeof elt === TYPE_STRING) :
|
case (typeof elt === TYPE_STRING) :
|
||||||
ret += doubleQuote(elt);
|
ret += doubleQuote(elt);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case (elt === undefined || elt === null) :
|
case (elt === undefined || elt === null) :
|
||||||
break; // add nothing but the delimiter, below -
|
break; // add nothing but the delimiter, below -
|
||||||
|
|
||||||
default:
|
default:
|
||||||
ret += elt.toString();
|
ret += elt.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((i < len-1) || (elt === undefined))
|
if ((i < len-1) || (elt === undefined))
|
||||||
|
|
Загрузка…
Ссылка в новой задаче