     closure = new Function 'h2o', '_h2o_context_', '_h2o_results_', js
     go null, closure
   catch error
-    go
-      message: 'Error compiling javascript'
-      cause: error
+    go exception 'Error compiling javascript', error
 
 executeJavascript = (sandbox) ->
   (closure, go) ->
     try
       go null, closure sandbox.routines, sandbox.context, sandbox.results
     catch error
-      go
-        message: 'Error executing javascript'
-        cause: error
+      go exception 'Error executing javascript', error
 
 Flow.Coffeescript = (_, sandbox) ->
   render: (guid, input, go) ->


deepClone = (obj) ->
  JSON.parse JSON.stringify obj

Flow.Application = (_) ->
  _view = Flow.Repl _

        return if _settled
        if error
          _settled = yes
          go exception "Error evalutating future[#{task.resultIndex}]", error
        else
          _results[task.resultIndex] = result
          _actual++
