Add Values() method for IDWeakMap
This commit is contained in:
parent
5e62b5975b
commit
28d1fb8cad
2 changed files with 11 additions and 0 deletions
|
@ -31,6 +31,9 @@ class IDWeakMap {
|
|||
// Returns IDs of all available objects.
|
||||
std::vector<int32_t> Keys() const;
|
||||
|
||||
// Returns all objects.
|
||||
std::vector<v8::Local<v8::Object>> Values(v8::Isolate* isolate);
|
||||
|
||||
// Remove object with |id| in the WeakMap.
|
||||
void Remove(int32_t key);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue