41 JS_StrictPropertyStub,
58 NSString* scriptName =
nil;
61 if (!JSID_IS_STRING(propID))
65 if (scriptName !=
nil) {
73 *value = [script oo_jsValueInContext:context];
102 foreach (name, names) {
#define OOJS_NATIVE_ENTER(cx)
PlayerEntity * OOPlayerForScripting(void)
static JSBool WorldScriptsEnumerate(JSContext *cx, JSObject *obj)
void InitOOJSWorldScripts(JSContext *context, JSObject *global)
static JSClass sWorldScriptsClass
static JSBool WorldScriptsGetProperty(JSContext *context, JSObject *this, jsid propID, jsval *value)
#define OOJS_PROP_READONLY
#define OOJS_PROP_READONLY_CB
NSString * OOStringFromJSString(JSContext *context, JSString *string)
NSDictionary * worldScriptsByName()
NSArray * worldScriptNames()