From 501aeb61ac7ef497ff539b0b6bc7f569f742775f Mon Sep 17 00:00:00 2001 From: Nick Gauthier Date: Mon, 7 Jun 2010 10:36:28 -0400 Subject: [PATCH] fixed rubyracer v8 binding to work with current version --- lib/hydra/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hydra/runner.rb b/lib/hydra/runner.rb index d09b94f..30f1f25 100644 --- a/lib/hydra/runner.rb +++ b/lib/hydra/runner.rb @@ -180,7 +180,7 @@ module Hydra #:nodoc: def run_javascript_file(file) errors = [] require 'v8' - V8::Context.open do |context| + V8::Context.new do |context| context.load(File.expand_path(File.join(File.dirname(__FILE__), 'js', 'lint.js'))) context['input'] = lambda{ File.read(file)