Bug 1118489 - Invoke Proxy constructor with 'new' to avoid soon-to-be TypeError. (r=philipp, a=rkent)
This commit is contained in:
Родитель
a343cf47fe
Коммит
bcbf92f727
|
@ -67,7 +67,7 @@ cal.async = {
|
|||
* will be complaints that an argument is missing.
|
||||
*/
|
||||
promisifyCalendar: function(aCalendar) {
|
||||
return Proxy(aCalendar, promisifyProxyHandler);
|
||||
return new Proxy(aCalendar, promisifyProxyHandler);
|
||||
},
|
||||
/**
|
||||
* Create an operation listener (calIOperationListener) that resolves when
|
||||
|
|
Загрузка…
Ссылка в новой задаче