Open
Description
I'm trying to use duktape with Rails environment:
- Rails 4.2.6
- ExecJS 2.7
- duktape 1.3.0.6
- autoprefixer-rails 6.0.3
After bundling gems I accessed the server and got ExecJS::ProgramError : identifier '(function(opts) {return eval(process' undefined
.
In autoprefixer-rails, #call
was called with following contexts:
apply_wrapper =
"(function(opts) {" +
"return eval(process.apply(this, opts));" +
"})"
params = params_with_browsers(opts[:from]).merge(opts)
result = runtime.call(apply_wrapper, [css, params])
In ExecJS::DuktapeRuntime::Context#call
, it is parsed by identifier.split(".")
. It results in wrongly splitted code.
I don't know it is good to pass complex identifier
for #call
, but the code written as such exists.
Metadata
Metadata
Assignees
Labels
No labels