Comments (1)
I'm not a very skilled ruby developer so I'm going to have to punt and ask
around. Fortunately the ruby platform bridge code is very small so I should
be able to determine if it's an issue particular to envjs or therubyracer.
My current free cycles are pretty slim so if you find out first let me
know! Thanks for the post.
Thatcher
On Mon, May 9, 2011 at 5:34 AM, falaise <
[email protected]>wrote:
Hello,
I try to write a little script with Ruby on a Linux Fedora 64 bits box.
I am using the gem 'therubyracer-heroku-0.8.1' for the V8 machine because
the gem 'therubyracer' fails to compile on 64 bits with gcc RedHat 4.5.1.So, in my script, i load the 'envjs/rubyracer.rb' and it success with Ruby
1.8.7 but fails with Ruby 1.9.2 for two reasons :-1) 'configure_context' method fails for compatibility reason on 'eval'.
Just add to_s method to the parameter of 'eval'.
-2) Exception raised with that stack :👎 Uncaught TypeError: Cannot convert object to primitive value
ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/portal.rb:118:in
block in v8': undefined methodSetHiddenValue' for # (NoMethodError)
ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/portal.rb:117:in
tap'ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/portal.rb:117:inv8'
ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/portal.rb:111:in
block (2 levels) in v8'ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/portal.rb:110:ineach'
ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/portal.rb:110:in
block in v8'ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/portal.rb:109:intap'
ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/portal.rb:109:in
v8'
ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/object.rb:19:inblock
(2 levels) in []='
ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/portal.rb:75:in
block in open'ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/context.rb:79:inenter'
ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/portal.rb:74:in
open'
ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/object.rb:18:inblock
in []='
ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/object.rb:17:in
tap'ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/object.rb:17:in[]='
ruby-192p136/lib/ruby/gems/1.9.1/gems/therubyracer-heroku-0.8.1.pre3/lib/v8/context.rb:58:in
[]='
envjs/rubyracer.rb:47:inconfigure_context'
from ./go.sh:7:in load'
from ./go.sh:7:in'Any idea ?
Regards.
Reply to this email directly or view it on GitHub:
#33
Christopher Thatcher
from env-js.
Related Issues (20)
- Rhino XHR 404 Response Error
- Tag 1.3.pre1 Ant Build Failure on rhino-env target HOT 3
- Settings problem with Ruby 1.9 and TheRubyRacer V8. HOT 1
- Bug with Envjs.WriteToFile in envjs/platform/rubyracer.js on Linux
- 1.3pre1: jQuery 1.4.4 elements inaccessible with document.getElementById HOT 1
- 1.3pre1: parser.js missing primitive byte types HOT 1
- cookie problems in version 1.2
- Content-Length needs to be specdified for spydermonkey port
- Getting an error using this with Capybara 1.0.0 HOT 1
- Disable logging
- Created script node is evaluated immediately
- Issue with addEvent in dojo/_firebug/firebug.js HOT 1
- c.removeAttribute is not a function error
- print(JSON.stringify({re:/[a-z]/})); shows empty object HOT 4
- Is "}, get xml() {" found in dom.js really correct JavaScript syntax?
- Support metro style app
- compareDocumentPosition Error
- IPv6 Support
- Env.js Website Down? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from env-js.