News for hackers. Stuff that matters.
Re:Ways to Invoke a Function in JavaScript by 19eightyfour on Sunday June 18, 2017 @09:58PM (#14584154)
Which one of these would be cheating?

    [...{[Symbol.iterator](){return {next(){ return {done:console.log(1)}}}}}];
    JSON.parse("[]",()=>console.log(1))
Re:Ways to Invoke a Function in JavaScript by yladiz on Sunday June 18, 2017 @10:14PM (#14584209)
Funny enough, if you take the first and put it into babeljs.io, it will cause it to crash the tab.
Re:Ways to Invoke a Function in JavaScript by 19eightyfour on Sunday June 18, 2017 @11:41PM (#14584499)
"Owned." Heh.
Re:Ways to Invoke a Function in JavaScript by sillysaurus3 on Sunday June 18, 2017 @10:10PM (#14584192)
That first example is pretty amusing.
Re:Ways to Invoke a Function in JavaScript by 19eightyfour on Sunday June 18, 2017 @11:42PM (#14584501)
Yeah i got a chuckle out of it when i crashed my console session.