#include "gdb-tests.h" #include "jsapi.h" #include "js/HeapAPI.h" FRAGMENT(GCCellPtr, simple) { JS::GCCellPtr nulll(nullptr); JS::Rooted glob(cx, JS::CurrentGlobalOrNull(cx)); JS::Rooted empty(cx, JS_NewStringCopyN(cx, nullptr, 0)); JS::Rooted unique(cx, JS::NewSymbol(cx, nullptr)); JS::GCCellPtr object(glob.get()); JS::GCCellPtr string(empty.get()); JS::GCCellPtr symbol(unique.get()); breakpoint(); (void) nulll; (void) object; (void) string; (void) symbol; }