Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

pass script options to CoffeeScript compiler

  • Loading branch information...
commit 77ced599ef16fde28be810269bea3d185685bff1 1 parent 5fcb8fb
Daniël van de Burgt authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/windtunnel/index.js
4 lib/windtunnel/index.js
@@ -62,12 +62,12 @@ function createContext() {
62 62 jasmine.load(sandbox)
63 63 jasmine.init(sandbox, new reporter.SpecReporter(env.reporter))
64 64
65   - sandbox.script = function(scriptPath) {
  65 + sandbox.script = function(scriptPath, options) {
66 66 var filename = getCurrentScriptPath()
67 67 var dir = path.dirname(filename)
68 68 var fullpath = tools.realpath(path.join(dir, scriptPath))
69 69 var data = tools.readfile(fullpath)
70   - var s = vm.createScript(tools.convertToJs(data, fullpath), fullpath)
  70 + var s = vm.createScript(tools.convertToJs(data, fullpath, options), fullpath)
71 71 s.runInContext(sandbox)
72 72 }
73 73 return sandbox

0 comments on commit 77ced59

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