This works:
var a = {} || {};
While this does not:
{} || {};
Uncaught SyntaxError: Unexpected token ||
at Object.InjectedScript._evaluateOn (<anonymous>:905:140)
at Object.InjectedScript._evaluateAndWrap (<anonymous>:838:34)
at Object.InjectedScript.evaluate (<anonymous>:694:21)
Why is that? Tested on ff and chrome.
Javascript considers braces to be a code block. Try this:
({} || {});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With