sstephenson/execjs — Issue #62: Test failure with execjs 1.2.13 and spidermonkey 1.8.5
Author: graaff
Created: 2011-12-30 12:35:00+00:00
State: open

I'm getting two test failures with spidermonkey 1.8.5. Tests all pass with nodejs 0.6.6.

```
1) Error:
test_eval(TestExecJS):
MultiJson::DecodeError: lexical error: invalid character inside string.
["ok",""]
(right here) ------^

/usr/lib64/ruby/gems/1.8/gems/multi_json-1.0.4/lib/multi_json/engines/yajl.rb:10:in `parse'
/usr/lib64/ruby/gems/1.8/gems/multi_json-1.0.4/lib/multi_json/engines/yajl.rb:10:in `decode'
/usr/lib64/ruby/gems/1.8/gems/multi_json-1.0.4/lib/multi_json.rb:76:in `decode'
./lib/execjs/external_runtime.rb:61:in `extract_result'
./lib/execjs/external_runtime.rb:27:in `exec'
./lib/execjs/external_runtime.rb:40:in `compile_to_tempfile'
./lib/execjs/external_runtime.rb:26:in `exec'
./lib/execjs/external_runtime.rb:18:in `eval'
./lib/execjs/external_runtime.rb:107:in `eval'
./lib/execjs/module.rb:23:in `eval'
/var/tmp/portage/dev-ruby/execjs-1.2.13/work/all/sstephenson-execjs-7fc7967/test/test_execjs.rb:82:in `test_eval'

2) Error:
test_exec(TestExecJS):
MultiJson::DecodeError: lexical error: invalid character inside string.
["ok",""]
(right here) ------^

/usr/lib64/ruby/gems/1.8/gems/multi_json-1.0.4/lib/multi_json/engines/yajl.rb:10:in `parse'
/usr/lib64/ruby/gems/1.8/gems/multi_json-1.0.4/lib/multi_json/engines/yajl.rb:10:in `decode'
/usr/lib64/ruby/gems/1.8/gems/multi_json-1.0.4/lib/multi_json.rb:76:in `decode'
./lib/execjs/external_runtime.rb:61:in `extract_result'
./lib/execjs/external_runtime.rb:27:in `exec'
./lib/execjs/external_runtime.rb:40:in `compile_to_tempfile'
./lib/execjs/external_runtime.rb:26:in `exec'
./lib/execjs/external_runtime.rb:102:in `exec'
./lib/execjs/module.rb:19:in `exec'
/var/tmp/portage/dev-ruby/execjs-1.2.13/work/all/sstephenson-execjs-7fc7967/test/test_execjs.rb:63:in `test_exec'
```