diff options
Diffstat (limited to 'Tools/javascript/jsc_shell.cxx')
-rw-r--r-- | Tools/javascript/jsc_shell.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/javascript/jsc_shell.cxx b/Tools/javascript/jsc_shell.cxx index 292c4042b..fadd6bec7 100644 --- a/Tools/javascript/jsc_shell.cxx +++ b/Tools/javascript/jsc_shell.cxx @@ -18,7 +18,7 @@ typedef int (*JSCIntializer)(JSGlobalContextRef context, JSObjectRef *module); public: - JSCShell() {}; + JSCShell() { context = 0; } virtual ~JSCShell(); @@ -225,7 +225,7 @@ void JSCShell::PrintError(JSContextRef ctx, JSValueRef err) { int line = (int) JSValueToNumber(ctx, jsLine, 0); JSStringRelease(lineKey); - std::cerr << sourceURL << ":" << line << ":" << errMsg << std::endl; + std::cerr << sourceURL << ':' << line << ':' << errMsg << std::endl; } JSShell* JSCShell_Create() { |