From 16fd36eb9d13a71deba2d7a737efa16e1f953138 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 13 Aug 2015 12:23:59 +0100 Subject: Proper error handling for JS context creation. --- javascript/none.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'javascript/none.c') diff --git a/javascript/none.c b/javascript/none.c index d4b8ce565..3ae1f4f54 100644 --- a/javascript/none.c +++ b/javascript/none.c @@ -35,9 +35,11 @@ void js_finalise(void) { } -jscontext *js_newcontext(int timeout, jscallback *cb, void *cbctx) +nserror js_newcontext(int timeout, jscallback *cb, void *cbctx, + jscontext **jsctx) { - return NULL; + *jsctx = NULL; + return NSERROR_OK; } void js_destroycontext(jscontext *ctx) -- cgit v1.2.3