there is this javascript file that a can inject code after throw new Error("error string")
line. But it seems that after the throw statement, no code can be executed.
throw new Error("error string");
<my xss code here>
if there was no semicolon at the end of the statement I think it would possible to run code by a conditional(ternary) operator like this:
throw new Error("error string")
? 1==0: code
Is there any way to run code after the throw statement? maybe an undocumented way?