Permalink
Browse files

working with new therubyracer

  • Loading branch information...
1 parent cd869df commit 67790586a6148199b796c223f52215d649286c2d @jeffsu committed Feb 17, 2013
View
2 VERSION
@@ -1 +1 @@
-0.6.15
+0.6.16
View
8 platforms/gem/lib/mochiscript/core.rb
@@ -10,19 +10,19 @@ def initialize
end
def parse(str)
- @ctx.eval_js("$m.parse(#{str.to_json})")
+ @ctx.eval("$m.parse(#{str.to_json})")
end
def to_json(str)
- @ctx.eval_js("$m.toJSON(#{str.to_json})")
+ @ctx.eval("$m.toJSON(#{str.to_json})")
end
def pp(str)
- return @ctx.eval_js("$m.pp(#{str.to_json})")
+ return @ctx.eval("$m.pp(#{str.to_json})")
end
def eval_ms(str)
- @ctx.eval_js(parse(str))
+ @ctx.eval(parse(str))
end
protected
View
2 platforms/gem/lib/mochiscript/version.rb
@@ -1,3 +1,3 @@
module Mochiscript
- VERSION = "0.6.14"
+ VERSION = "0.6.16"
end
View
2 platforms/npm/package.json
@@ -3,7 +3,7 @@
"description": "Javascript Dessert",
"keywords": [ "javascript", "language", "mochiscript", "compiler" ],
"author": "Jeff Su",
- "version": "0.6.14",
+ "version": "0.6.16",
"licenses": [ { "type": "MIT" }],
"engines": { "node": ">=0.4.0" },
"directories": { "lib": "./lib/mochiscript" },
View
8 src/platforms/gem/lib/mochiscript/core.rb.erb
@@ -10,19 +10,19 @@ module Mochiscript
end
def parse(str)
- @ctx.eval_js("$m.parse(#{str.to_json})")
+ @ctx.eval("$m.parse(#{str.to_json})")
end
def to_json(str)
- @ctx.eval_js("$m.toJSON(#{str.to_json})")
+ @ctx.eval("$m.toJSON(#{str.to_json})")
end
def pp(str)
- return @ctx.eval_js("$m.pp(#{str.to_json})")
+ return @ctx.eval("$m.pp(#{str.to_json})")
end
def eval_ms(str)
- @ctx.eval_js(parse(str))
+ @ctx.eval(parse(str))
end
protected

0 comments on commit 6779058

Please sign in to comment.