nativeThis->UpdateEnabled(&nativeRet); *rval = BOOLEAN_TO_JSVAL(nativeRet); return JS_TRUE;
nsIScriptGlobalObject *globalObject = nsnull; nsIScriptContext *scriptContext = GetScriptContextFromJSContext(cx); if (scriptContext) globalObject = scriptContext->GetGlobalObject();  PRBool nativeRet = PR_FALSE; if (globalObject) nativeThis->UpdateEnabled(globalObject, &nativeRet);  *rval = BOOLEAN_TO_JSVAL(nativeRet); return JS_TRUE;
InstallTriggerGlobalUpdateEnabled(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval){  nsIDOMInstallTriggerGlobal *nativeThis = (nsIDOMInstallTriggerGlobal*)JS_GetPrivate(cx, obj);  PRBool nativeRet = PR_FALSE;  *rval = JSVAL_FALSE;  if (nsnull == nativeThis  &&  (JS_FALSE == CreateNativeObject(cx, obj, &nativeThis)) )    return JS_TRUE;   nativeThis->UpdateEnabled(&nativeRet);   *rval = BOOLEAN_TO_JSVAL(nativeRet);   return JS_TRUE;}