DEFLATE_STRING_BODY
for (i = 0; i < length; i++) bytes[i] = (char) chars[i];  bytes [length] = 0;
js_DeflateString(JSContext *cx, const jschar *chars, size_t length){    size_t i, size;    char *bytes;    size = (length + 1) * sizeof(char);    bytes = (char *) (cx ? JS_malloc(cx, size) : malloc(size));    if (!bytes)        return NULL;    DEFLATE_STRING_BODY    return bytes;}