DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (b66b287a2650)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13
#include "tests.h"

BEGIN_TEST(testIntString_bug515273)
{
    jsvalRoot v(cx);
    EVAL("'42';", v.addr());

    JSString *str = JSVAL_TO_STRING(v.value());
    const char *bytes = JS_GetStringBytes(str);
    CHECK(strcmp(bytes, "42") == 0);
    return true;
}
END_TEST(testIntString_bug515273)