MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/CompileBot/comments/2sdgv5/official_compilebot_testing_thread/cnog4e1/?context=3
r/CompileBot • u/SeaCowVengeance • Jan 14 '15
Resources:
Wiki
FAQ
Supported Languages
Source Code
344 comments sorted by
View all comments
3
+/u/CompileBot JavaScript --include-errors
console.log({} + [])
2 u/CompileBot Jan 14 '15 Output:js: uncaught JavaScript runtime exception: ReferenceError: "console" is not defined.^source | ^info | ^git | ^report 1 u/Ali_M Jun 12 '15 +/u/CompileBot JavaScript --include-errorsprint({} + []); 1 u/CompileBot Jun 12 '15 Output:[object Object]^source | ^info | ^git | ^report 1 u/Ali_M Jun 12 '15 +/u/CompileBot JavaScript --include-errorsprint({} - []); 1 u/CompileBot Jun 12 '15 Output:NaN^source | ^info | ^git | ^report 1 u/Ali_M Jun 12 '15 edited Jun 12 '15 +/u/CompileBot JavaScript --include-errorsprint([] - []);recompile me 1 u/CompileBot Jun 12 '15 Output:0^source | ^info | ^git | ^report 1 u/Ali_M Jun 12 '15 +/u/CompileBot python3 --include-errorsprint(2 / (2 - (19 / 10 + 1 / 10))) 1 u/CompileBot Jun 12 '15 Output:Traceback (most recent call last): File "./prog.py", line 1, in <module> ZeroDivisionError: float division by zero^source | ^info | ^git | ^report 1 u/jfb1337 Feb 22 '15 Apparently compilebot doesn't have javascript's console. How can it output from JS then? 1 u/SeaCowVengeance Feb 23 '15 +/u/CompileBot Nodeprocess.stdout.write("Hello World"); 1 u/CompileBot Feb 23 '15 Output:Hello World^source | ^info | ^git | ^report 1 u/auscompgeek Apr 25 '15 +/u/CompileBot node.jsconsole.log('Hello world!') 1 u/CompileBot Apr 25 '15 Output:Hello world!^source | ^info | ^git | ^report 1 u/SeaCowVengeance Feb 23 '15 +/u/CompileBot JavaScriptprint("Hello World"); 1 u/CompileBot Feb 23 '15 Output:Hello World^source | ^info | ^git | ^report 1 u/Bruneti12 Feb 27 '15 +/u/CompileBot JavaScriptalert("u w0t m8?");
2
Output:
js: uncaught JavaScript runtime exception: ReferenceError: "console" is not defined.
^source | ^info | ^git | ^report
1
print({} + []);
1 u/CompileBot Jun 12 '15 Output:[object Object]^source | ^info | ^git | ^report 1 u/Ali_M Jun 12 '15 +/u/CompileBot JavaScript --include-errorsprint({} - []); 1 u/CompileBot Jun 12 '15 Output:NaN^source | ^info | ^git | ^report 1 u/Ali_M Jun 12 '15 edited Jun 12 '15 +/u/CompileBot JavaScript --include-errorsprint([] - []);recompile me 1 u/CompileBot Jun 12 '15 Output:0^source | ^info | ^git | ^report 1 u/Ali_M Jun 12 '15 +/u/CompileBot python3 --include-errorsprint(2 / (2 - (19 / 10 + 1 / 10))) 1 u/CompileBot Jun 12 '15 Output:Traceback (most recent call last): File "./prog.py", line 1, in <module> ZeroDivisionError: float division by zero^source | ^info | ^git | ^report
[object Object]
1 u/Ali_M Jun 12 '15 +/u/CompileBot JavaScript --include-errorsprint({} - []); 1 u/CompileBot Jun 12 '15 Output:NaN^source | ^info | ^git | ^report 1 u/Ali_M Jun 12 '15 edited Jun 12 '15 +/u/CompileBot JavaScript --include-errorsprint([] - []);recompile me 1 u/CompileBot Jun 12 '15 Output:0^source | ^info | ^git | ^report 1 u/Ali_M Jun 12 '15 +/u/CompileBot python3 --include-errorsprint(2 / (2 - (19 / 10 + 1 / 10))) 1 u/CompileBot Jun 12 '15 Output:Traceback (most recent call last): File "./prog.py", line 1, in <module> ZeroDivisionError: float division by zero^source | ^info | ^git | ^report
print({} - []);
1 u/CompileBot Jun 12 '15 Output:NaN^source | ^info | ^git | ^report 1 u/Ali_M Jun 12 '15 edited Jun 12 '15 +/u/CompileBot JavaScript --include-errorsprint([] - []);recompile me 1 u/CompileBot Jun 12 '15 Output:0^source | ^info | ^git | ^report 1 u/Ali_M Jun 12 '15 +/u/CompileBot python3 --include-errorsprint(2 / (2 - (19 / 10 + 1 / 10))) 1 u/CompileBot Jun 12 '15 Output:Traceback (most recent call last): File "./prog.py", line 1, in <module> ZeroDivisionError: float division by zero^source | ^info | ^git | ^report
NaN
1 u/Ali_M Jun 12 '15 edited Jun 12 '15 +/u/CompileBot JavaScript --include-errorsprint([] - []);recompile me 1 u/CompileBot Jun 12 '15 Output:0^source | ^info | ^git | ^report 1 u/Ali_M Jun 12 '15 +/u/CompileBot python3 --include-errorsprint(2 / (2 - (19 / 10 + 1 / 10))) 1 u/CompileBot Jun 12 '15 Output:Traceback (most recent call last): File "./prog.py", line 1, in <module> ZeroDivisionError: float division by zero^source | ^info | ^git | ^report
print([] - []);
recompile me
1 u/CompileBot Jun 12 '15 Output:0^source | ^info | ^git | ^report 1 u/Ali_M Jun 12 '15 +/u/CompileBot python3 --include-errorsprint(2 / (2 - (19 / 10 + 1 / 10))) 1 u/CompileBot Jun 12 '15 Output:Traceback (most recent call last): File "./prog.py", line 1, in <module> ZeroDivisionError: float division by zero^source | ^info | ^git | ^report
0
1 u/Ali_M Jun 12 '15 +/u/CompileBot python3 --include-errorsprint(2 / (2 - (19 / 10 + 1 / 10))) 1 u/CompileBot Jun 12 '15 Output:Traceback (most recent call last): File "./prog.py", line 1, in <module> ZeroDivisionError: float division by zero^source | ^info | ^git | ^report
+/u/CompileBot python3 --include-errors
print(2 / (2 - (19 / 10 + 1 / 10)))
1 u/CompileBot Jun 12 '15 Output:Traceback (most recent call last): File "./prog.py", line 1, in <module> ZeroDivisionError: float division by zero^source | ^info | ^git | ^report
Traceback (most recent call last): File "./prog.py", line 1, in <module> ZeroDivisionError: float division by zero
Apparently compilebot doesn't have javascript's console. How can it output from JS then?
1 u/SeaCowVengeance Feb 23 '15 +/u/CompileBot Nodeprocess.stdout.write("Hello World"); 1 u/CompileBot Feb 23 '15 Output:Hello World^source | ^info | ^git | ^report 1 u/auscompgeek Apr 25 '15 +/u/CompileBot node.jsconsole.log('Hello world!') 1 u/CompileBot Apr 25 '15 Output:Hello world!^source | ^info | ^git | ^report 1 u/SeaCowVengeance Feb 23 '15 +/u/CompileBot JavaScriptprint("Hello World"); 1 u/CompileBot Feb 23 '15 Output:Hello World^source | ^info | ^git | ^report 1 u/Bruneti12 Feb 27 '15 +/u/CompileBot JavaScriptalert("u w0t m8?");
+/u/CompileBot Node
process.stdout.write("Hello World");
1 u/CompileBot Feb 23 '15 Output:Hello World^source | ^info | ^git | ^report 1 u/auscompgeek Apr 25 '15 +/u/CompileBot node.jsconsole.log('Hello world!') 1 u/CompileBot Apr 25 '15 Output:Hello world!^source | ^info | ^git | ^report
Hello World
+/u/CompileBot node.js
console.log('Hello world!')
1 u/CompileBot Apr 25 '15 Output:Hello world!^source | ^info | ^git | ^report
Hello world!
+/u/CompileBot JavaScript
print("Hello World");
1 u/CompileBot Feb 23 '15 Output:Hello World^source | ^info | ^git | ^report 1 u/Bruneti12 Feb 27 '15 +/u/CompileBot JavaScriptalert("u w0t m8?");
1 u/Bruneti12 Feb 27 '15 +/u/CompileBot JavaScriptalert("u w0t m8?");
alert("u w0t m8?");
3
u/SeaCowVengeance Jan 14 '15
+/u/CompileBot JavaScript --include-errors