Commit 4f8f844f authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix LAZY_BOOLEAN macro definition

This is what was causing the 'is_utf8' message header property to be created as a Number instead of a Boolean.
parent e7454ba0
Pipeline #2997 passed with stage
in 9 minutes and 49 seconds
......@@ -1257,7 +1257,7 @@ js_get_index(JSContext *cx, uintN argc, jsval *arglist)
#define LAZY_BOOLEAN(PropName, PropValue, flags) \
if(name==NULL || strcmp(name, (PropName))==0) { \
if(name) free(name); \
v=INT_TO_BOOL((PropValue)); \
v=BOOLEAN_TO_JSVAL((PropValue)); \
JS_DefineProperty(cx, obj, (PropName), v, NULL,NULL,flags); \
if(name) return JS_TRUE; \
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment