зеркало из https://github.com/mozilla/pjs.git
Bug 422161 - Fix JS strict errors in *.jsm modules. r and rs=gavin, a1.9+=damons
This commit is contained in:
Родитель
cc94714d40
Коммит
c7dfce802c
|
@ -34,7 +34,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
EXPORTED_SYMBOLS = [ "DistributionCustomizer" ];
|
||||
var EXPORTED_SYMBOLS = [ "DistributionCustomizer" ];
|
||||
|
||||
const Ci = Components.interfaces;
|
||||
const Cc = Components.classes;
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
EXPORTED_SYMBOLS = [ "PluralForm" ];
|
||||
var EXPORTED_SYMBOLS = [ "PluralForm" ];
|
||||
|
||||
/**
|
||||
* This module provides the PluralForm object which contains a method to figure
|
||||
|
|
|
@ -41,7 +41,7 @@ const SECONDS_TO_MILLISECONDS = 1000;
|
|||
const MINUTES_TO_MILLISECONDS = MINUTES_TO_SECONDS * SECONDS_TO_MILLISECONDS;
|
||||
const HOURS_TO_MILLISECONDS = HOURS_TO_MINUTES * MINUTES_TO_MILLISECONDS;
|
||||
|
||||
EXPORTED_SYMBOLS = ["ISO8601DateUtils"];
|
||||
var EXPORTED_SYMBOLS = ["ISO8601DateUtils"];
|
||||
|
||||
debug("*** loading ISO8601DateUtils\n");
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
* JSON.fromString aren't instanceof Object/Array.
|
||||
*/
|
||||
|
||||
EXPORTED_SYMBOLS = ["JSON"];
|
||||
var EXPORTED_SYMBOLS = ["JSON"];
|
||||
|
||||
// The following code is a loose adaption of Douglas Crockford's code
|
||||
// from http://www.json.org/json.js (public domain'd)
|
||||
|
|
|
@ -99,7 +99,7 @@
|
|||
*/
|
||||
|
||||
|
||||
EXPORTED_SYMBOLS = [ "XPCOMUtils" ];
|
||||
var EXPORTED_SYMBOLS = [ "XPCOMUtils" ];
|
||||
|
||||
const Ci = Components.interfaces;
|
||||
const Cr = Components.results;
|
||||
|
|
|
@ -1 +1 @@
|
|||
EXPORTED_SYMBOLS = [{}];
|
||||
var EXPORTED_SYMBOLS = [{}];
|
||||
|
|
|
@ -1 +1 @@
|
|||
EXPORTED_SYMBOLS = "not an array";
|
||||
var EXPORTED_SYMBOLS = "not an array";
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
EXPORTED_SYMBOLS = ["foo", "bar"]
|
||||
var EXPORTED_SYMBOLS = ["foo", "bar"];
|
||||
|
||||
function foo() {
|
||||
return "foo";
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
EXPORTED_SYMBOLS = ["baz", "qux"]
|
||||
var EXPORTED_SYMBOLS = ["baz", "qux"];
|
||||
|
||||
function baz() {
|
||||
return "baz";
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
EXPORTED_SYMBOLS = ["Sanitizer"];
|
||||
var EXPORTED_SYMBOLS = ["Sanitizer"];
|
||||
|
||||
var Sanitizer = {
|
||||
get _prefs() {
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
EXPORTED_SYMBOLS = [ "DownloadUtils" ];
|
||||
var EXPORTED_SYMBOLS = [ "DownloadUtils" ];
|
||||
|
||||
/**
|
||||
* This module provides the DownloadUtils object which contains useful methods
|
||||
|
|
Загрузка…
Ссылка в новой задаче