Skip to content

Instantly share code, notes, and snippets.

@eliaskg
Created November 13, 2009 21:15
Show Gist options
  • Save eliaskg/234166 to your computer and use it in GitHub Desktop.
Save eliaskg/234166 to your computer and use it in GitHub Desktop.
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 284: missing : after property id
js: get length() {
js: ..................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 287: missing ; before statement
js: read: read,
js: .............^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 288: syntax error
js: write: write,
js: ..............^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 289: syntax error
js: copy: copy,
js: .............^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 290: syntax error
js: close: function () {
js: ..............^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 292: syntax error
js: },
js: .........^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 293: syntax error
js: flush: function () {
js: ..............^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 295: syntax error
js: },
js: ........^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 296: syntax error
js: iterator: function () {
js: .................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 298: syntax error
js: },
js: ........^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 299: syntax error
js: forEach: function (block) {
js: ................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 300: missing ; before statement
js: while (true) {
js: .........................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 303: syntax error
js: } catch (exception) {
js: .......................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 305: unlabelled break must be inside loop or switch
js: break;
js: .............................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 307: syntax error
js: }
js: ................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 309: syntax error
js: },
js: ........^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 310: syntax error
js: readLine: function () {
js: .................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 314: invalid return
js: return read(pos + 1);
js: ..................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 315: syntax error
js: },
js: ........^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 316: syntax error
js: readLines: function () {
js: ..................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 323: invalid return
js: return lines;
js: ..................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 324: syntax error
js: },
js: ........^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 325: syntax error
js: next: next,
js: .............^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 326: syntax error
js: print: function (line) {
js: ..............^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 328: syntax error
js: },
js: ........^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 329: syntax error
js: toString: function() {
js: .................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 331: syntax error
js: },
js: ........^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 332: syntax error
js: substring: function () {
js: ..................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 334: invalid return
js: return string.substring.apply(string, arguments);
js: ..................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 335: syntax error
js: },
js: ........^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 336: syntax error
js: slice: function () {
js: ..............^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 338: invalid return
js: return string.slice.apply(string, arguments);
js: ..................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 339: syntax error
js: },
js: ........^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 340: syntax error
js: substr: function () {
js: ...............^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 342: invalid return
js: return string.substr.apply(string, arguments);
js: ..................^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 343: syntax error
js: }
js: ........^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 345: invalid return
js: return Object.create(self);
js: ..........^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 346: syntax error
js: };
js: ^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 350: syntax error
js: }
js: ^
js: "/usr/local/narwhal/engines/rhino/lib/io-engine.js", line 1: Compilation produced 39 syntax errors.
InternalError: Compilation produced 39 syntax errors. (/usr/local/narwhal/engines/rhino/lib/io-engine.js#1)
org.mozilla.javascript.EvaluatorException: Compilation produced 39 syntax errors. (/usr/local/narwhal/engines/rhino/lib/io-engine.js#1)
at org.mozilla.javascript.tools.ToolErrorReporter.runtimeError(ToolErrorReporter.java:142)
at org.mozilla.javascript.Parser.parse(Parser.java:369)
at org.mozilla.javascript.Parser.parse(Parser.java:293)
at org.mozilla.javascript.Context.compileImpl(Context.java:2238)
at org.mozilla.javascript.Context.compileFunction(Context.java:1325)
at org.mozilla.javascript.Context.compileFunction(Context.java:1314)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:204)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86)
at org.mozilla.javascript.gen.c1._c4(/usr/local/narwhal/engines/rhino/bootstrap.js:64)
at org.mozilla.javascript.gen.c1.call(/usr/local/narwhal/engines/rhino/bootstrap.js)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3085)
at script(/usr/local/narwhal/lib/sandbox.js:51)
at script(/usr/local/narwhal/lib/sandbox.js:71)
at script(/usr/local/narwhal/lib/sandbox.js:153)
at script(/usr/local/narwhal/lib/sandbox.js:143)
at script(/usr/local/narwhal/lib/sandbox.js:236)
at script(/usr/local/narwhal/lib/io.js:3)
at script(/usr/local/narwhal/lib/sandbox.js:250)
at script(/usr/local/narwhal/engines/rhino/lib/system.js:2)
at script(/usr/local/narwhal/lib/sandbox.js:250)
at script(narwhal.js:97)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
at org.mozilla.javascript.gen.c1._c1(/usr/local/narwhal/engines/rhino/bootstrap.js:91)
at org.mozilla.javascript.gen.c1.call(/usr/local/narwhal/engines/rhino/bootstrap.js)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
at org.mozilla.javascript.gen.c1._c0(/usr/local/narwhal/engines/rhino/bootstrap.js:1)
at org.mozilla.javascript.gen.c1.call(/usr/local/narwhal/engines/rhino/bootstrap.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
at org.mozilla.javascript.gen.c1.call(/usr/local/narwhal/engines/rhino/bootstrap.js)
at org.mozilla.javascript.gen.c1.exec(/usr/local/narwhal/engines/rhino/bootstrap.js)
at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:503)
at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:425)
at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:391)
at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:382)
at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:179)
at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:100)
at org.mozilla.javascript.Context.call(Context.java:528)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:450)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:162)
at org.mozilla.javascript.tools.shell.Main.main(Main.java:140)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment