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



commit 88bdfd4cad3c73c14f3012ef6c884d6ea495f7fe
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.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781429

 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]