Skip to content
This repository
Browse code

working with new therubyracer

  • Loading branch information...
commit 67790586a6148199b796c223f52215d649286c2d 1 parent cd869df
Jeff Su authored February 16, 2013
2  VERSION
... ...
@@ -1 +1 @@
1  
-0.6.15
  1
+0.6.16
8  platforms/gem/lib/mochiscript/core.rb
@@ -10,19 +10,19 @@ def initialize
10 10
     end
11 11
 
12 12
     def parse(str)
13  
-      @ctx.eval_js("$m.parse(#{str.to_json})")
  13
+      @ctx.eval("$m.parse(#{str.to_json})")
14 14
     end
15 15
 
16 16
     def to_json(str)
17  
-      @ctx.eval_js("$m.toJSON(#{str.to_json})")
  17
+      @ctx.eval("$m.toJSON(#{str.to_json})")
18 18
     end
19 19
 
20 20
     def pp(str)
21  
-      return @ctx.eval_js("$m.pp(#{str.to_json})")
  21
+      return @ctx.eval("$m.pp(#{str.to_json})")
22 22
     end
23 23
 
24 24
     def eval_ms(str)
25  
-      @ctx.eval_js(parse(str))
  25
+      @ctx.eval(parse(str))
26 26
     end
27 27
 
28 28
     protected
2  platforms/gem/lib/mochiscript/version.rb
... ...
@@ -1,3 +1,3 @@
1 1
 module Mochiscript
2  
-  VERSION = "0.6.14"
  2
+  VERSION = "0.6.16"
3 3
 end
2  platforms/npm/package.json
@@ -3,7 +3,7 @@
3 3
   "description": "Javascript Dessert",
4 4
   "keywords": [ "javascript", "language", "mochiscript", "compiler" ],
5 5
   "author": "Jeff Su",
6  
-  "version": "0.6.14",
  6
+  "version": "0.6.16",
7 7
   "licenses": [ { "type": "MIT" }],
8 8
   "engines": { "node": ">=0.4.0" },
9 9
   "directories": { "lib": "./lib/mochiscript" },
8  src/platforms/gem/lib/mochiscript/core.rb.erb
@@ -10,19 +10,19 @@ module Mochiscript
10 10
     end
11 11
 
12 12
     def parse(str)
13  
-      @ctx.eval_js("$m.parse(#{str.to_json})")
  13
+      @ctx.eval("$m.parse(#{str.to_json})")
14 14
     end
15 15
 
16 16
     def to_json(str)
17  
-      @ctx.eval_js("$m.toJSON(#{str.to_json})")
  17
+      @ctx.eval("$m.toJSON(#{str.to_json})")
18 18
     end
19 19
 
20 20
     def pp(str)
21  
-      return @ctx.eval_js("$m.pp(#{str.to_json})")
  21
+      return @ctx.eval("$m.pp(#{str.to_json})")
22 22
     end
23 23
 
24 24
     def eval_ms(str)
25  
-      @ctx.eval_js(parse(str))
  25
+      @ctx.eval(parse(str))
26 26
     end
27 27
 
28 28
     protected

0 notes on commit 6779058

Please sign in to comment.
Something went wrong with that request. Please try again.