Skip to content
Snippets Groups Projects
Commit 4f8f844f authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2997 passed
...@@ -1257,7 +1257,7 @@ js_get_index(JSContext *cx, uintN argc, jsval *arglist) ...@@ -1257,7 +1257,7 @@ js_get_index(JSContext *cx, uintN argc, jsval *arglist)
#define LAZY_BOOLEAN(PropName, PropValue, flags) \ #define LAZY_BOOLEAN(PropName, PropValue, flags) \
if(name==NULL || strcmp(name, (PropName))==0) { \ if(name==NULL || strcmp(name, (PropName))==0) { \
if(name) free(name); \ if(name) free(name); \
v=INT_TO_BOOL((PropValue)); \ v=BOOLEAN_TO_JSVAL((PropValue)); \
JS_DefineProperty(cx, obj, (PropName), v, NULL,NULL,flags); \ JS_DefineProperty(cx, obj, (PropName), v, NULL,NULL,flags); \
if(name) return JS_TRUE; \ if(name) return JS_TRUE; \
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment