[gjs/wip/js17: 2/14] JS_BufferIsCompilableUnit API change
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/js17: 2/14] JS_BufferIsCompilableUnit API change
- Date: Sun, 24 Mar 2013 13:27:46 +0000 (UTC)
commit f4ec41a2e148f6bc32af9933754a4e3c50f5d319
Author: Tim Lunn <tim feathertop org>
Date: Thu Jan 3 12:59:54 2013 +1100
JS_BufferIsCompilableUnit API change
This now requires a JSBool argument specifying UTF-8 support.
https://bugzilla.gnome.org/show_bug.cgi?id=690982
modules/console.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/console.c b/modules/console.c
index 35add3f..a1805b3 100644
--- a/modules/console.c
+++ b/modules/console.c
@@ -190,7 +190,7 @@ gjs_console_interact(JSContext *context,
g_string_append(buffer, temp_buf);
g_free(temp_buf);
lineno++;
- } while (!JS_BufferIsCompilableUnit(context, object, buffer->str, buffer->len));
+ } while (!JS_BufferIsCompilableUnit(context, JS_TRUE, object, buffer->str, buffer->len));
JS_EvaluateScript(context, object, buffer->str, buffer->len, "typein",
startline, &result);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]