context_(context),
owner_(owner)
{
- JSValueProtect(context_, owner_);
+ if (owner_ != NULL)
+ JSValueProtect(context_, owner_);
}
virtual ~CYOwned() {
- JSValueUnprotect(context_, owner_);
+ if (owner_ != NULL)
+ JSValueUnprotect(context_, owner_);
}
JSObjectRef GetOwner() const {
-labelled statements don't get labelled
-blocks and empty statements are poorly factored
unicode identifier support (native and \u)
object literal compilation should use numerify strings
support unions (right now 0-1 fields parsed as struct)
\\\n escapes in strings aren't handled in the console
look into what String is, and whether to bridge it
-for each (k in ObjectiveC.classes) { if (class_getInstanceMethod(k, @selector(description))) [k description]; }