bool addEdgeTo(FakeNode& referent, const char16_t* edgeName = nullptr) {
        JS::ubi::Node node(&referent);

        if (edgeName) {
            auto ownedName = js::DuplicateString(edgeName);
            MOZ_RELEASE_ASSERT(ownedName);
            return edges.emplaceBack(ownedName.release(), node);
        }

        return edges.emplaceBack(nullptr, node);
    }
Exemple #2
0
 bool addEdgeTo(FakeNode& referent) {
     JS::ubi::Node node(&referent);
     return edges.emplaceBack(nullptr, node);
 }