You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue isn't related to the typescript compiler but to the playground present on typescript.org, which, according to #2246 and #17677, implements an instance of monaco-editor. I've opened this issue in this repository instead of the monaco-editor one because it seems that the problem is caused by the extensions to monaco-editor that have been added to build the playground. Feel free to close this issue if I'm mistaken.
TypeScript Version: 3.8.3
Search Terms: Map console.log playground
Expected behavior:
The standard representation of the Map object Map { 1 => 32 } is printed on the console.log call.
Actual behavior:
An empty object {} is printed on the console.log call.
Related Issues:
There's an stackoverflow question from 2017 which complains about the same behaviour on a repl.it environment
I've just tested it on both Firefox 75.0 and Chromium 81.0.4044.122 and have been able to reproduce the issue on the two of them. It must be noted that I'm referring to the Logs pane that is on the right side of the playground:
This issue isn't related to the typescript compiler but to the playground present on typescript.org, which, according to #2246 and #17677, implements an instance of monaco-editor. I've opened this issue in this repository instead of the monaco-editor one because it seems that the problem is caused by the extensions to monaco-editor that have been added to build the playground. Feel free to close this issue if I'm mistaken.
TypeScript Version: 3.8.3
Search Terms:
Map console.log playground
Expected behavior:
The standard representation of the Map object
Map { 1 => 32 }
is printed on theconsole.log
call.Actual behavior:
An empty object
{}
is printed on theconsole.log
call.Related Issues:
There's an stackoverflow question from 2017 which complains about the same behaviour on a repl.it environment
Code
Output
Compiler Options
Playground Link: Provided
The text was updated successfully, but these errors were encountered: