sstephenson / execjs

Run JavaScript code from Ruby
MIT License
1.16k stars 46 forks source link

Using backtick in javascript gives Runtime error #203

Open mohitmun opened 8 years ago

mohitmun commented 8 years ago

running ExecJS.eval "red yellow blue.split(' ')" gives

ExecJS::RuntimeError: SyntaxError: Unexpected token ILLEGAL

backticks are used template strings in javascript