[seed] Implementing the gjs/system gc method
- From: Alan Knowles <alank src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seed] Implementing the gjs/system gc method
- Date: Fri, 15 Jan 2016 06:46:55 +0000 (UTC)
commit 339ac729b4fe7dc2d16a660b62ae29c050b90367
Author: Danilo Cesar Lemes de Paula <danilo cesar collabora co uk>
Date: Thu Jan 14 13:54:31 2016 -0200
Implementing the gjs/system gc method
modules/gjs/system/seed-system.c | 18 ++++++------------
1 files changed, 6 insertions(+), 12 deletions(-)
---
diff --git a/modules/gjs/system/seed-system.c b/modules/gjs/system/seed-system.c
index 4e0ff3e..b17aa79 100644
--- a/modules/gjs/system/seed-system.c
+++ b/modules/gjs/system/seed-system.c
@@ -104,18 +104,12 @@ gjs_gc (SeedContext ctx,
size_t argumentCount,
const SeedValue arguments[], SeedException * exception)
{
-/*static SeedValue
-gjs_gc(SeedContext context,
- unsigned argc,
- SeedValue *vp)
-{
- JS::CallArgs argv = JS::CallArgsFromVp (argc, vp);
- if (!gjs_parse_call_args(context, "gc", "", argv))
- return FALSE;
- JS_GC(JS_GetRuntime(context));
- argv.rval().set(JSVAL_VOID);
- return TRUE;*/
- return seed_value_from_boolean (ctx, TRUE, exception);
+ if (argumentCount != 0) {
+ NUMARG_EXPECTED_EXCEPTION("gc", "0 arguments");
+ }
+
+ seed_context_collect(ctx);
+ return seed_make_undefined (ctx);
}
static SeedValue
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]