               name: identifier.name
       go null, program
     catch error
-      go
-        message: 'Error rewriting javascript'
-        cause: error
+      go exception 'Error rewriting javascript', error
 
 generateJavascript = (program, go) ->
   try
     go null, escodegen.generate program
   catch error
-    return go
-      message: 'Error generating javascript'
-      cause: error
+    return go exception 'Error generating javascript', error
 
 compileJavascript = (js, go) ->
   debug js

    closure = new Function 'h2o', '_h2o_context_', '_h2o_results_', js
    go null, closure
  catch error
    go
      message: 'Error compiling javascript'
      cause: error

executeJavascript = (sandbox) ->
  (closure, go) ->
    try
      go null, closure sandbox.routines, sandbox.context, sandbox.results
    catch error
      go
        message: 'Error executing javascript'
        cause: error

Flow.Coffeescript = (_, sandbox) ->
  render: (guid, input, go) ->

  try
    go null, CoffeeScript.compile cs, bare: yes
  catch error
    go exception 'Error compiling coffee-script', error

parseJavascript = (js, go) ->
  try
    go null, esprima.parse js
  catch error
    go exception 'Error parsing javascript expression', error


identifyDeclarations = (node) ->
