blob: cc5802dbe772d529d502d48d938ce71ee3e12aba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#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<JS::Symbol*> 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;
}
|