JavaScript - is it possible to force code execution after an error?
<p>I'm trying to make a PoC of reflected Cross-Site Scripting on a website that I'm testing right now. I've found a place inside of a Javascript code where commands can be injected, however the trouble is that there the previous block of code throws a 'not defined' error  and therefore (at least I think so) my injected code is not executed. Is there any chance to execute the code anyway?</p>

<p>Here is the code:</p>

<pre><code>UndefinedObject.Init({
  Var1:"a",
  Var2:"b",
  Var3:"can_be_injected_with_JS_code")}
</code></pre>

<p>I can't inject any HTML tags as these are filtered by the application.</p>

<p>Many thanks!</p>
