Add API to return all keys of weak map.
This commit is contained in:
parent
b35946381b
commit
51db9494bd
2 changed files with 21 additions and 4 deletions
|
@ -35,9 +35,10 @@ class IDWeakMap : public node::ObjectWrap {
|
|||
static v8::Handle<v8::Value> Add(const v8::Arguments& args);
|
||||
static v8::Handle<v8::Value> Get(const v8::Arguments& args);
|
||||
static v8::Handle<v8::Value> Has(const v8::Arguments& args);
|
||||
static v8::Handle<v8::Value> Keys(const v8::Arguments& args);
|
||||
static v8::Handle<v8::Value> Remove(const v8::Arguments& args);
|
||||
|
||||
int nextId_;
|
||||
int next_id_;
|
||||
|
||||
std::map<int, v8::Persistent<v8::Value>> map_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue