JS_GetGlobalObject(aContext),
global,
nsresult NS_InitNodeClass(JSContext *aContext, JSObject **aPrototype){  // look in the global object for this class prototype  jsval vp;  static JSObject *proto = nsnull;  if (nsnull == proto) {    proto = JS_InitClass(aContext, // context                          JS_GetGlobalObject(aContext), // global object                          NULL, // parent proto                           &node, // JSClass                          Node, // JSNative ctor                          0, // ctor args                          NULL, // proto props                          nodeMethods, // proto funcs                          NULL, // ctor props (static)                          NULL); // ctor funcs (static)    if (nsnull == proto) {      return NS_ERROR_FAILURE;    }  }  if (nsnull != aPrototype) {    *aPrototype = proto;  }  return NS_OK;}