Timeline for Snippet produces "Error: Permission denied to access property Symbol.toPrimitive"
Current License: CC BY-SA 4.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 26, 2018 at 10:55 | comment | added | Mr Lister | @Kaiido I still think your remark is valuable, even if it doesn't gain you rep. Maybe you should consider editing Tschallacka's answer and adding it in. | |
May 26, 2018 at 6:52 | comment | added | Kaiido | The answer would have been almost the same as this one regarding this meta-question: not a bug of stacksnippet per se. Besides, I usually don't rep farm, so even less when there is no rep in game ;-) | |
May 26, 2018 at 6:18 | comment | added | Mr Lister | @Kaiido Hey, you're right. Thanks for the explanation! But you should have posted it as an answer, since it actually provides an answer to my question, and then I could have upvoted. | |
May 26, 2018 at 1:05 | comment | added | Kaiido | @MrLister about your side note 1, it is actually because jsfiddle by default wraps your code in an onload event handler, if you had chosen "no wrap in body" option for your js execution (same as what StackSnippets do) you would have experienced the same issue there. | |
May 25, 2018 at 19:10 | comment | added | Mr Lister | Ah, LISP. xkcd.com/297 | |
May 25, 2018 at 14:36 | comment | added | Tschallacka | Ah, okay :-) my main reason is pbs.twimg.com/media/CukkQOkWgAA5C8G.jpg | |
May 25, 2018 at 13:36 | comment | added | Cerbrus |
@Tschallacka: I know it also works. I was just curious why you used + over the more commonly used brackets.
|
|
May 25, 2018 at 13:14 | comment | added | Tschallacka | @MrLister yes and yes. Prefably you'd always encompass your functions within their own scope. Then you won't run into tricky stiff like thos or having to track globals. | |
May 25, 2018 at 13:12 | comment | added | Tschallacka | Because + function also works. It forces the function to be evaluated and saves a couple of brackets. We're not choding LISP here | |
May 25, 2018 at 12:16 | comment | added | Mr Lister | Good. Side notes: 1) So the fact that it works in jsfiddle is a side effect of jsfiddle not using a sandboxed frame rather than a flaw in StackSnippet. 2) It would also have worked if I really had created a new variable rather than repurposing an existing one, and then I wouldn't have noticed I was doing something wrong! | |
May 25, 2018 at 12:03 | comment | added | Cerbrus |
Why are you using +function(){}() instead of (function(){})() ?
|
|
May 25, 2018 at 9:50 | vote | accept | Mr Lister | ||
May 25, 2018 at 9:08 | history | edited | Tschallacka | CC BY-SA 4.0 |
added 238 characters in body
|
May 25, 2018 at 8:58 | history | answered | Tschallacka | CC BY-SA 4.0 |