function | removed v1.10.738 | added v0.0-2985 | Edit |
(load-file repl-env opts src)
Load a JavaScript. This is needed to load JavaScript files before the Rhino environment is bootstrapped. After bootstrapping load-javascript will be used.
(defn load-file
[repl-env opts src]
(let [goog-path (io/file (util/output-directory opts) "goog" src)]
(rhino-eval repl-env (.getPath goog-path) 1 (io/reader goog-path))))