Bug 1243805 - Replace Proxy.create with new Proxy in devtools l10n code. r=jryans

This commit is contained in:
Joe Walker 2016-02-05 18:30:59 +00:00
parent ee4677067e
commit d7d495ed86
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ exports.lookup = function(name) {
* <code>l10n:l10n.propertyLookup</code> in the template data and use it
* like <code>${l10n.BLAH}</code>
*/
exports.propertyLookup = Proxy.create({
exports.propertyLookup = new Proxy({}, {
get: function(rcvr, name) {
return exports.lookup(name);
}

View File

@ -71,7 +71,7 @@ exports.lookup = function(key) {
};
/** @see propertyLookup in lib/gcli/util/l10n.js */
exports.propertyLookup = Proxy.create({
exports.propertyLookup = new Proxy({}, {
get: function(rcvr, name) {
return exports.lookup(name);
}