[gjs/gnome-3-8-js17: 1/14] JS_BufferIsCompilableUnit API change



commit d47b1db17db0755716939d7f80db61a50fa1b6ce
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]