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)