[seed] Implementing the gjs/system clearDateCache method
- From: Alan Knowles <alank src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seed] Implementing the gjs/system clearDateCache method
- Date: Fri, 15 Jan 2016 06:47:05 +0000 (UTC)
commit 0c87961e53352dbee7f5230bca586cbaac1e173b
Author: Danilo Cesar Lemes de Paula <danilo cesar collabora co uk>
Date: Thu Jan 14 14:23:22 2016 -0200
Implementing the gjs/system clearDateCache method
modules/gjs/system/seed-system.c | 23 +++++------------------
1 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/modules/gjs/system/seed-system.c b/modules/gjs/system/seed-system.c
index 8c4c985..a04d575 100644
--- a/modules/gjs/system/seed-system.c
+++ b/modules/gjs/system/seed-system.c
@@ -145,24 +145,11 @@ gjs_clear_date_caches (SeedContext ctx,
size_t argumentCount,
const SeedValue arguments[], SeedException * exception)
{
-/*static SeedValue
-gjs_clear_date_caches(SeedContext context,
- unsigned argc,
- SeedValue *vp)
-{
- JS::CallReceiver rec = JS::CallReceiverFromVp(vp);
- JS_BeginRequest(context);
-
- // Workaround for a bug in SpiderMonkey where tzset is not called before
- // localtime_r, see https://bugzilla.mozilla.org/show_bug.cgi?id=1004706
- tzset();
-
- JS_ClearDateCaches(context);
- JS_EndRequest(context);
-
- rec.rval().set(JSVAL_VOID);
- return TRUE;*/
- return seed_value_from_boolean (ctx, TRUE, exception);
+ // This is provided just for compatibility as javascriptcore doesn't provide the same
+ // feature.
+ // I'm not even sure that this is needed for webkit.
+ seed_make_exception (ctx, exception, "ImplementationError", "clearDateCache is not implemented.");
+ return seed_make_undefined(ctx);
}
static seed_static_function module_funcs[] = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]