mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
Bug 1243805 - Replace Proxy.create with new Proxy in devtools l10n code. r=jryans
--HG-- extra : transplant_source : v%BE-%17%C2%07y%FEX%7D%E1%A1%DE%C4%CB%88P%9D%1E%AA
This commit is contained in:
parent
19409bcb7c
commit
1218f357a4
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user