Skip to content

Commit

Permalink
Switched to non-internal javascript Context class in eval1 fn
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Beam committed Jul 21, 2011
1 parent e4ad8ed commit 9427f91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/cljs/compiler.clj
Expand Up @@ -916,11 +916,11 @@ goog.require = function(rule){Packages.clojure.lang.RT[\"var\"](\"cljs.compiler\
(print js))
(let [filename (.get jse javax.script.ScriptEngine/FILENAME)
linenum (or (:line (meta form)) Integer/MIN_VALUE)
ctx (sun.org.mozilla.javascript.internal.Context/enter)]
ctx (sun.org.mozilla.javascript.Context/enter)]
(try
(.evaluateString ctx (:global repl-env) js filename linenum nil)
(finally
(sun.org.mozilla.javascript.internal.Context/exit))))
(sun.org.mozilla.javascript.Context/exit))))
(catch Throwable ex
;;we eat ns errors because we know goog.provide() will throw when reloaded
;;TODO - file bug with google, this is bs error
Expand Down

0 comments on commit 9427f91

Please sign in to comment.