Browse Source

Updated Node.js benchfib example to use Smalltalk syntax and Closure compiler.

Göran Krampe 13 years ago
parent
commit
d9c59e2134
2 changed files with 2 additions and 4 deletions
  1. 1 3
      nodejs/benchfib/Benchfib.st
  2. 1 1
      nodejs/benchfib/Makefile

+ 1 - 3
nodejs/benchfib/Benchfib.st

@@ -6,9 +6,7 @@ Object subclass: #Benchfib
 
 main
 
-	| result |
-	result := 0 tinyBenchmarks.
-	{'console.log(''0 tinyBenchmarks => '' + result);'}
+	console log: '0 tinyBenchmarks => ', 0 tinyBenchmarks
 ! !
 
 !Number methodsFor: '*Benchfib'!

+ 1 - 1
nodejs/benchfib/Makefile

@@ -1,5 +1,5 @@
 Program.js: Benchfib.st
-	../jtalkc -N -O -m Benchfib Benchfib.st Program
+	../../bin/jtalkc -N -O -m Benchfib Benchfib.st Program
 
 run: Program.js
 	./benchfib