Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Handle nil in toJS (mringel)

  • Loading branch information...
commit 46ce56ef86cc4e65c3fafc84b5d0cb1833bb2b8f 1 parent a6cb2e2
@parmanoir authored
View
3  JSCocoa/JSCocoaController.m
@@ -949,6 +949,9 @@ - (JSValueRef)_toJS:(id)object {
}
return jsDict;
}
+ else if (object == nil || [object isKindOfClass:[NSNull class]]) {
+ return JSValueMakeNull(ctx);
+ }
NSLog(@"Don't know how to convert %@, boxing it", object);
return [self boxObject:object];
}
View
BIN  ...ner/TestsRunner.xcodeproj/project.xcworkspace/xcuserdata/mini.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.