While using the apple JavascriptCore reference for usage in my webkit c program everything works fine which is good.
The only problem is there doesn't seem to be any documentation on how to set c functions as instance methods. There is a way to set, or get the prototype, but I don't know what good it is because I can't figure out how to set methods on it.
If there's a way I can't find it. There is a way to set properties, but only with javascript values. There is a simple way to set c functions as static methods, but not c functions as instance methods as far as I can tell. Unless I'm misunderstanding the docs.
I have tried the webkit email help list, but no one is replying.
I think I have solved this. Turns out objects are also values for webkit JavascriptCore. This might seem obvious, but in the c api sometimes objects are not values. I'll be coming back to explain all this when I answer my own question.