Skip to main content
15 events
when toggle format what by license comment
Oct 31, 2018 at 2:58 vote accept Amadan
Oct 30, 2018 at 14:04 answer added canon timeline score: 22
Oct 29, 2018 at 22:43 comment added Amadan @Bergi: That's fair; but they are also not just empty objects. jsbin.com says [object WeakMap] { ... }; codepen.io says [object WeakMap] {}, without listing contents, but letting you know there's more to the object than {}. (To be fair, they also have equivalent output for Map...)
Oct 29, 2018 at 20:47 comment added Bergi Btw, WeakSet and WeakMap contents cannot be output by code. Only a debugger-attached inspector can do that. Similar to closure scopes...
Oct 29, 2018 at 17:28 comment added Amadan @Kaiido: Sorry, but if I ever mistakenly log a mousewheel event, I'm killing the tab, whether or not these are being tested for :D
Oct 29, 2018 at 17:01 comment added Makyen Mod @j08691 The list of libraries are just a convenience for adding <script src="foo"></script> elements to the HTML section. You can add any others you want manually. Although, I do agree that it would be convenient to add/update those, it's not something that actually prevents you from using whatever libraries you need (within the other constraints on Stack Snippets).
Oct 29, 2018 at 14:23 comment added Kaiido Similar request, meta.stackoverflow.com/questions/370046/… and same cause: StackConsole.log() uses JSON.stringify(), so yes, many objects won't get a nice output, like TypedArrays are currently exposed as literal objects. But I'm afraid that adding a special parser for all these cases would make the console way more slow than it already is (ever made the mistake of letting the StackConsole on while logging a mousewheel event?)
Oct 29, 2018 at 13:37 comment added j08691 It'd be nice if they updated the libraries they allow you to include as well. Feels like stack snippets was abandoned awhile ago.
Oct 29, 2018 at 13:11 comment added Amadan @DragandDrop: Wouldn't know, don't touch the stuff :D My mother used to tell me "Don't touch the edge, it can hurt you" - never knew how right she was. Even though she was talking about a kitchen knife...
Oct 29, 2018 at 13:10 comment added Amadan Regarding the link: it shows how to patch the Map object so that repl.it will display it. First of all, it does not work for SO Snippets. And furthermore, there used to be a time when we used to patch console with a gist; there was a giant cheer when SO Snippets included the console functionality natively, so I really don't think userside patching of Map in each post is a good answer. It is a missing feature that should be implemented (I personally don't particularly need to rush it, but it should be documented, and I haven't seen it mentioned before).
Oct 29, 2018 at 13:08 comment added Drag and Drop "Browser console is working perfectly.", Except for edge..
Oct 29, 2018 at 12:52 comment added Amadan @KanonChowdhury: Browser console is working perfectly. Stack Overflow Snippet console (the little window with yellow-then-grey background that you get when you click "Run code snippet") is not.
Oct 29, 2018 at 12:51 comment added Shamsur Rahman I have run your snippets on my browser(Chrome & Firefox) console and it's working perfect. i believe stackoverflow.com/questions/45571101/… this link will help you.
Oct 29, 2018 at 6:53 history edited Amadan CC BY-SA 4.0
added 235 characters in body
Oct 29, 2018 at 6:33 history asked Amadan CC BY-SA 4.0