blob: f3d4e2f3697b709ed5794fc571934baecf82574a [file] [log] [blame]
#include "gdb-tests.h"
#include "jsapi.h"
#include "js/HeapAPI.h"
FRAGMENT(GCCellPtr, simple) {
JS::GCCellPtr nulll(nullptr);
JS::Rooted<JSObject*> glob(cx, JS::CurrentGlobalOrNull(cx));
JS::Rooted<JSString*> empty(cx, JS_NewStringCopyN(cx, nullptr, 0));
JS::Rooted<Symbol*> unique(cx, 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;
}