Bug 542858 - Don't pretend that the complex global object is a function. r=jorendorff
authorBlake Kaplan <mrbkap@gmail.com>
Mon, 22 Mar 2010 16:43:08 -0700
changeset 40332 9ab9132b1055e71aff108122f80f9a85d63379a1
parent 40331 d412747189f623a6bfc8f1e454eee95bb7d50383
child 40333 114be95eca4c15276e22ac60e7ddd50507eb4271
push id12610
push userrsayre@mozilla.com
push dateMon, 05 Apr 2010 17:26:41 +0000
treeherdermozilla-central@1942c0b4e101 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff
bugs542858
milestone1.9.3a3pre
Bug 542858 - Don't pretend that the complex global object is a function. r=jorendorff
js/src/shell/js.cpp
--- a/js/src/shell/js.cpp
+++ b/js/src/shell/js.cpp
@@ -2768,16 +2768,18 @@ split_thisObject(JSContext *cx, JSObject
 static JSObjectOps split_objectops;
 
 static JSObjectOps *
 split_getObjectOps(JSContext *cx, JSClass *clasp)
 {
     if (!split_objectops.thisObject) {
         memcpy(&split_objectops, &js_ObjectOps, sizeof split_objectops);
         split_objectops.thisObject = split_thisObject;
+        split_objectops.call = NULL;
+        split_objectops.construct = NULL;
     }
 
     return &split_objectops;
 }
 
 static JSBool
 split_equality(JSContext *cx, JSObject *obj, jsval v, JSBool *bp);