Closed
Description
Calling keys()
on a Map returns an empty object rather than the keys of the Map:
$ node --version
v4.1.1
$ node
> const x = new Map();
undefined
> x.set("a", 1);
Map { 'a' => 1 }
> x.keys();
{}
This works in Chrome45 which is using a similar v8 (V8 4.5.103.35):
> const x = new Map();
undefined
> x.set("a", 1);
Map {"a" => 1}
> x.keys();
MapIterator {"a"}
Activity