Closed
Description
- Version: 8–10
- Platform: Windows 7 x64
- Subsystem: ?
'use strict';
new Map('a');
// Node.js 4.8.5
new Map('a');
^
TypeError: Iterator value a is not an entry object
// Node.js 6.11.5
new Map('a');
^
TypeError: Iterator value a is not an entry object
// Node.js 8.9.0
<no output>
// Node.js 9.0.0
<no output>
// Node.js 10.0.0 nightly 2017.11.06
<no output>
This only happens with a file script. In the REPL, new Map('a')
throws TypeError
in all these versions.