       (.eval "var global = {};")
       (.eval (io/reader (io/resource "META-INF/resources/webjars/lodash/3.10.1/lodash.js")))))
 
+  (try
+    (let [cx (Context/enter)
+          _ (.setOptimizationLevel cx -1)
+          scope (.initStandardObjects cx)
+          source (slurp (io/resource "babel-core/browser.js"))]
+      (.evaluateString cx scope "var global = {};" "shim.js" 1 nil)
+      (.evaluateString cx scope source "babel.js" 1 nil))
+    (catch RhinoException e
+      (println (.getScriptStackTrace e))))
+
   ;; another attempt
   ;; works with weird fix to browser.js
   ;; line 56607 has a Object.keys(obj).map expression that fails

        scope  (.initStandardObjects cx)
        source (slurp (io/resource "babel-core/browser.js"))]
    (.evaluateString cx scope
      "Object.keys({foo: 1}).map(function(n) { return n[0]; })"
      "<cmd>" 1 nil))

  )
            Config Config$LanguageMode ParserRunner]
           [com.google.javascript.rhino
            Node Token ErrorReporter SimpleErrorReporter]
           [org.mozilla.javascript Context RhinoException]))

(defprotocol JSTransformer
  (source-path [this])
