Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
compatibility fix for ruby 1.8.6
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboyd committed Jan 26, 2010
1 parent 1bca954 commit 6ceb2f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Expand Up @@ -27,6 +27,8 @@ end
Rake::ExtensionTask.new("v8", $hoe.spec) do |ext|
ext.lib_dir = "lib/v8"
ext.source_pattern = "*.{cpp,h}"
ext.config_options << "--with-v8-include=#{ENV['V8_HOME']}/include"
ext.config_options << "--with-v8-lib=#{ENV['V8_HOME']}"
end

require 'newgem/tasks'
Expand Down
4 changes: 2 additions & 2 deletions ext/v8/callbacks.cpp
Expand Up @@ -28,8 +28,8 @@ namespace {
return converted;
}

Local<Value> Racer_Access_Ruby_Property(VALUE object, VALUE name) {
VALUE method = rb_obj_method(object, name);
Local<Value> Racer_Access_Ruby_Property(VALUE object, VALUE name) {
VALUE method = rb_funcall(object, rb_intern("method"), 1, name);
if (FIX2INT(rb_funcall(method, rb_intern("arity"), 0)) == 0) {
return Racer_Call_Ruby_Method(object, name, Array::New(0));
} else {
Expand Down
2 changes: 1 addition & 1 deletion spec/redjs
Submodule redjs updated from 9e8d54 to 06abad

0 comments on commit 6ceb2f6

Please sign in to comment.