[gjs/wip/ptomato/mozjs45prep: 12/12] system: Switch from JS::CallReceiver to JS::CallArgs



commit 3f8bda7e734f6f5c9cc97dc4123e9482e3a3e479
Author: Philip Chimento <philip chimento gmail com>
Date:   Tue May 2 21:27:50 2017 -0700

    system: Switch from JS::CallReceiver to JS::CallArgs
    
    JS::CallReceiver is going away in SpiderMonkey 52. It was a version of
    JS::CallArgs that didn't care about the number of arguments passed to the
    function. We already use JS::CallArgs everywhere else, so this is not a
    problem.

 modules/system.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/system.cpp b/modules/system.cpp
index 6461760..e4f3fcd 100644
--- a/modules/system.cpp
+++ b/modules/system.cpp
@@ -130,7 +130,7 @@ gjs_clear_date_caches(JSContext *context,
                       unsigned   argc,
                       JS::Value *vp)
 {
-    JS::CallReceiver rec = JS::CallReceiverFromVp(vp);
+    JS::CallArgs rec = JS::CallArgsFromVp(argc, vp);
     JS_BeginRequest(context);
 
     // Workaround for a bug in SpiderMonkey where tzset is not called before


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]