Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff)

This commit is contained in:
Shu-yu Guo
2015-09-15 11:19:45 -07:00
parent b5d1789b6c
commit 37989840cd
2610 changed files with 6512 additions and 6512 deletions

View File

@@ -7,12 +7,12 @@ module.metadata = {
'stability': 'unstable'
};
let { merge } = require('../util/object');
let { data } = require('../self');
let assetsURI = data.url();
let isArray = Array.isArray;
let method = require('../../method/core');
let { uuid } = require('../util/uuid');
var { merge } = require('../util/object');
var { data } = require('../self');
var assetsURI = data.url();
var isArray = Array.isArray;
var method = require('../../method/core');
var { uuid } = require('../util/uuid');
const isAddonContent = ({ contentURL }) =>
contentURL && data.url(contentURL).startsWith(assetsURI);
@@ -43,16 +43,16 @@ function getAttachEventType(model) {
}
exports.getAttachEventType = getAttachEventType;
let attach = method('worker-attach');
var attach = method('worker-attach');
exports.attach = attach;
let connect = method('worker-connect');
var connect = method('worker-connect');
exports.connect = connect;
let detach = method('worker-detach');
var detach = method('worker-detach');
exports.detach = detach;
let destroy = method('worker-destroy');
var destroy = method('worker-destroy');
exports.destroy = destroy;
function WorkerHost (workerFor) {