Browse Source

Fixed nodejs benchfib to use new js escape syntax.

Göran Krampe 13 years ago
parent
commit
6979e700d1
1 changed files with 6 additions and 6 deletions
  1. 6 6
      nodejs/benchfib/Benchfib.st

+ 6 - 6
nodejs/benchfib/Benchfib.st

@@ -8,9 +8,9 @@ main
 
 	| result |
 	result := 0 tinyBenchmarks.
-	{'console.log(''0 tinyBenchmarks => '' + result);'}.
+	console log: '0 tinyBenchmarks => ' , result asString.
 	result := 0 jstinyBenchmarks.
-	{'console.log(''0 jstinyBenchmarks => '' + result);'}
+	console log: '0 jstinyBenchmarks => ' , result asString
 ! !
 
 !Number methodsFor: '*Benchfib'!
@@ -72,15 +72,15 @@ tinyBenchmarks
 
 jsbenchFib
  
-	{'if (this < 2) {
+	<if (this < 2) {
 return 1;
 } else {
-return (this-1)._jsbenchFib() + (this-2)._jsbenchFib() + 1;}'}
+return (this-1)._jsbenchFib() + (this-2)._jsbenchFib() + 1;}>
 !
 
 jsbenchmark
 
-{'
+<
 var size = 8190;
 var count;
 for (var z=0;z<this;z++) {
@@ -101,7 +101,7 @@ for (var z=0;z<this;z++) {
     }
   }
 }
-return count'}
+return count>
 !
 
 jstinyBenchmarks