Permalink
Browse files

... and that's why we always compile before we commit.

  • Loading branch information...
1 parent d018e6f commit 06c023c90dc010928b595a3acd9f9a0713b30776 @matthewd committed Apr 8, 2008
Showing with 5 additions and 3 deletions.
  1. +5 −3 spidermonkey.c
View
@@ -397,9 +397,11 @@ rb_smjs_ruby_to_js( JSContext* cx, VALUE rval, jsval* jval ){
case T_FALSE: *jval = JSVAL_FALSE; break;
case T_NIL: *jval = JSVAL_NULL; break;
default:
- JSObject* jo = rbsm_ruby_to_jsobject( cx, rval );
- if( ! jo ) return JS_FALSE;
- *jval = OBJECT_TO_JSVAL( jo );
+ {
+ JSObject* jo = rbsm_ruby_to_jsobject( cx, rval );
+ if( ! jo ) return JS_FALSE;
+ *jval = OBJECT_TO_JSVAL( jo );
+ }
}
return JS_TRUE;
}

0 comments on commit 06c023c

Please sign in to comment.