mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1243805 - Replace Proxy.create with new Proxy in devtools l10n code. r=jryans
This commit is contained in:
parent
ee4677067e
commit
d7d495ed86
@ -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…
Reference in New Issue
Block a user