Open ocharles opened 9 years ago
This is an exception from V8, likely from uglify.js, looks like. Could you try minifying fynder-loader.js with uglify 2 on the command line and see what it says? https://github.com/mishoo/UglifyJS2
I tried ./node_modules/.bin/uglifyjs resources/assets/js/loader/fynder-loader.js
and that runs successfully. That's uglifyjs 2.4.0.
That is peculiar. How about
(require '[optimus.optimizations.minify :as m])
(m/minify-js (slurp "assets/js/loader/fynder-loader.js"))
in the repl?
I'm seeing this, too. ./node_modules/.bin/uglifyjs main.js
works fine.
(-> (assets/load-bundle "." "main.js" ["/js/main.js"])
(optimizations/minify-js-assets nil))
and
(m/minify-js (slurp "resources/js/main.js"))
both throw that error.
Both node and clj-v8 are using v8 to run the javascript, so I wonder what is different.
Are you able to cut down that main.js
file to something that can be shared and still triggers this problem?
Yeah, i'll try that next, it's just a slow feedback loop and a lot of code to pare down, thanks for the quick reply, though!
Not sure what info I can provide, but this is the file that uses Optimus:
And this is the stack trace: