1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-26 03:02:28 +01:00

Windows binaries and stuff.

This commit is contained in:
Kris Maglione
2011-09-24 14:34:54 -04:00
parent 0aa21f15c1
commit ef965d7681
8 changed files with 31 additions and 17 deletions

View File

@@ -168,6 +168,7 @@ dactylUtils::CreateGlobal(JSContext *cx, jsval *out)
NS_ERROR_FAILURE);
*out = OBJECT_TO_JSVAL(global);
return NS_OK;
}
NS_IMETHODIMP
@@ -281,7 +282,9 @@ dactylUtils::GetGlobalForObject(const jsval &aObject,
NS_ERROR_XPC_BAD_CONVERT_JS);
JSObject *obj = JSVAL_TO_OBJECT(aObject);
#ifndef WIN32 /* Why? No idea. */
if (obj->isProxy())
#endif
obj = obj->unwrap();
JSObject *global = JS_GetGlobalForObject(cx, obj);