I hate LiveConnect.
authorJeff Walden <jwalden@mit.edu>
Fri, 30 Jan 2009 18:17:13 -0800
changeset 24503 e6af5a3866fa98c216fe18f6a163fed15f082581
parent 24502 3cfef5bd1da4b05836525d49762597ebeb055b26
child 24504 d146645d2e7258b50e9147869624304ea2a74c75
push id5074
push userrsayre@mozilla.com
push dateSat, 31 Jan 2009 19:45:42 +0000
treeherdermozilla-central@f1cade532f6f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.2a1pre
I hate LiveConnect.
js/src/jsobj.h
--- a/js/src/jsobj.h
+++ b/js/src/jsobj.h
@@ -541,21 +541,23 @@ js_ChangeNativePropertyAttrs(JSContext *
  * result parameters must later call OBJ_DROP_PROPERTY(cx, obj, *propp) both to
  * drop the held property, and to release the lock on obj.
  */
 extern JSBool
 js_DefineProperty(JSContext *cx, JSObject *obj, jsid id, jsval value,
                   JSPropertyOp getter, JSPropertyOp setter, uintN attrs,
                   JSProperty **propp);
 
+#ifdef __cplusplus /* LiveConnect, you suck. */
 extern JSBool
 js_DefineNativeProperty(JSContext *cx, JSObject *obj, jsid id, jsval value,
                         JSPropertyOp getter, JSPropertyOp setter, uintN attrs,
                         uintN flags, intN shortid, JSProperty **propp,
                         JSPropCacheEntry** entryp = NULL);
+#endif
 
 /*
  * Unlike js_DefineProperty, propp must be non-null. On success, and if id was
  * found, return true with *objp non-null and locked, and with a held property
  * stored in *propp. If successful but id was not found, return true with both
  * *objp and *propp null. Therefore all callers who receive a non-null *propp
  * must later call OBJ_DROP_PROPERTY(cx, *objp, *propp).
  */