You should see "Test passed" alert.
If it didn't show up, open Message Console and look for "Inline script compilation error".
This is the code that causes syntax error in Opera Message Console:
var validRegExp = /xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[y]{2,}z/;
Something in this regexp causes syntax error in Opera.
RegExp itself is valid. It searches for 93 "x", two or more "y" and "z" at the end.
It needs to meet these requirements to cause syntax error:
- have exactly these number of characters (remove one "x" and it will make Opera happy)
- must have a repeater expression ("{}") within regexp
- there needs to be exactly one character before the end of the regexp and after repeater expression
Such error will invalidate whole script block and so can cause serious problems.