Get the latest tech news

Yet another way to invoke functions without parentheses


d yet another way to invoke arbitrary functions in javascript without using parentheses this payload works by overwriting the prepareStackTrace function of the Error object to generate arbitrary functions. it is usually used to format stack traces and is invoked when the attribute stack of an error is accessed.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Way

Way

Photo of functions

functions

Photo of parentheses

parentheses

Related news:

News photo

Spyware vendors found a way to make targeted ads even worse

News photo

AI has a $2.5 trillion problem and replacing 250 million jobs is the only way to solve it

News photo

'The EU’s next chapter in AI is agentic': New OpenAI report claims agent use is on the rise across Europe — but it still has some way to catch up to other markets