Permalink
Browse files

Additional fixes to MOJavaScriptObject handling.

  • Loading branch information...
1 parent ad57f78 commit 5a5032ab71dbfeecdea7a89b9415a963b86a53e7 @logancollins committed Aug 8, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 Mocha/MochaRuntime.m
View
@@ -407,6 +407,9 @@ - (JSValueRef)JSValueForObject:(id)object {
if ([object isKindOfClass:[MOBox class]]) {
value = [object JSObject];
}
+ else if ([object isKindOfClass:[MOJavaScriptObject class]]) {
+ return [object JSObject];
+ }
/*else if ([object isKindOfClass:[NSString class]]) {
JSStringRef string = JSStringCreateWithCFString((CFStringRef)object);
value = JSValueMakeString(_ctx, string);

0 comments on commit 5a5032a

Please sign in to comment.