Bug 422161 - Fix JS strict errors in *.jsm modules. r and rs=gavin, a1.9+=damons
git-svn-id: svn://10.0.0.236/trunk@247682 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
818a3abe5f
commit
b92b4f76da
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user