mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
pass back ruby boolean values to ruby, not C boolean values.
This commit is contained in:
parent
d9479d98e6
commit
c757632e48
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ VALUE rr_v82rb(Handle<Value> value) {
|
|||
return INT2FIX(value->Int32Value());
|
||||
}
|
||||
if (value->IsBoolean()) {
|
||||
return value->BooleanValue() ? true : false;
|
||||
return value->BooleanValue() ? Qtrue : Qfalse;
|
||||
}
|
||||
if (value->IsNumber()) {
|
||||
return rb_float_new(value->NumberValue());
|
||||
|
|
Loading…
Add table
Reference in a new issue