From bcbf92f727e697223f3325e846c76040d2f944c2 Mon Sep 17 00:00:00 2001 From: Eric Faust Date: Tue, 6 Jan 2015 15:50:55 -0800 Subject: [PATCH] Bug 1118489 - Invoke Proxy constructor with 'new' to avoid soon-to-be TypeError. (r=philipp, a=rkent) --- calendar/base/modules/calAsyncUtils.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/base/modules/calAsyncUtils.jsm b/calendar/base/modules/calAsyncUtils.jsm index 729fecaf3e..79a4b10cbb 100644 --- a/calendar/base/modules/calAsyncUtils.jsm +++ b/calendar/base/modules/calAsyncUtils.jsm @@ -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