Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

spaces

  • Loading branch information...
commit 92bc758dcb081951607dc3b8cc4f9a929cc95a58 1 parent ec84ca7
@gfx authored
Showing with 8 additions and 2 deletions.
  1. +1 −1  hello.js
  2. +1 −1  hello.jsx
  3. +6 −0 main.c
View
2  hello.js
@@ -1,3 +1,3 @@
#!nore
console.log("Hello, JavaScript/" + process.title + "!");
-console.log("argv: " + JSON.stringify(process.argv));
+console.log("argv:", JSON.stringify(process.argv));
View
2  hello.jsx
@@ -2,6 +2,6 @@
class _Main {
static function main(args : string[]) : void {
log "Hello, JSX!";
- log "argv: " + JSON.stringify(args);
+ log "argv:", JSON.stringify(args);
}
}
View
6 main.c
@@ -43,6 +43,9 @@ printToStdoutFunc(
for (size_t i = 0; i < argLen; ++i) {
printJSValueRef(ctx, args[i], stdout, exception);
+ if ((i + 1) < argLen) {
+ fputs(" ", stdout);
+ }
}
fputs("\n", stdout);
@@ -60,6 +63,9 @@ printToStderrFunc(
for (size_t i = 0; i < argLen; ++i) {
printJSValueRef(ctx, args[i], stderr, exception);
+ if ((i + 1) < argLen) {
+ fputs(" ", stderr);
+ }
}
fputs("\n", stderr);
Please sign in to comment.
Something went wrong with that request. Please try again.