311
311
gjs_rooted_array_append(context, array, value);
315
314
JS_ClearNewbornRoots(context);
319
317
for (i = 0; i < N_ELEMS; i++) {
323
320
value = gjs_rooted_array_get(context, array, i);
324
321
g_assert(JSVAL_IS_STRING(value));
340
323
g_assert(strcmp(ascii, "abcdefghijk") == 0);