biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / misc / jscoverage / jsfalse_to_null.patch
blobb49594964e1f3fb651dd407260c0891f40a21031
1 diff --git i/js/jsstr.cpp w/js/jsstr.cpp
2 index e662bf1..b18597e 100644
3 --- i/js/jsstr.cpp
4 +++ w/js/jsstr.cpp
5 @@ -3040,7 +3040,7 @@ js_InitStringClass(JSContext *cx, JSObject *obj)
6 JSVAL_VOID, NULL, NULL,
7 JSPROP_READONLY | JSPROP_PERMANENT | JSPROP_SHARED, 0, 0,
8 NULL)) {
9 - return JS_FALSE;
10 + return NULL;
13 return proto;
14 diff --git i/js/jsxml.cpp w/js/jsxml.cpp
15 index 5621ede..e00c97d 100644
16 --- i/js/jsxml.cpp
17 +++ w/js/jsxml.cpp
18 @@ -303,7 +303,7 @@ NewXMLNamespace(JSContext *cx, JSString *prefix, JSString *uri, JSBool declared)
20 obj = js_NewObject(cx, &js_NamespaceClass.base, NULL, NULL);
21 if (!obj)
22 - return JS_FALSE;
23 + return NULL;
24 JS_ASSERT(JSVAL_IS_VOID(obj->fslots[JSSLOT_PREFIX]));
25 JS_ASSERT(JSVAL_IS_VOID(obj->fslots[JSSLOT_URI]));
26 JS_ASSERT(JSVAL_IS_VOID(obj->fslots[JSSLOT_DECLARED]));