[gjs] system: Switch from JS::CallReceiver to JS::CallArgs
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] system: Switch from JS::CallReceiver to JS::CallArgs
- Date: Sat, 6 May 2017 06:24:27 +0000 (UTC)
commit 99dd8db404f310bb3d709b6b0be442d5171516ab
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]