Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Additional fixes to MOJavaScriptObject handling.

  • Loading branch information...
commit 5a5032ab71dbfeecdea7a89b9415a963b86a53e7 1 parent ad57f78
@logancollins authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  Mocha/MochaRuntime.m
View
3  Mocha/MochaRuntime.m
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.