Invalid flags in a RegExp literal should be an early SyntaxError
[WebKit-https.git] / JSTests / stress / empty_eos_regex_split.js
1 var splited = "a".split(/$/);
2 if (splited.length != 1 || splited[0] != "a") 
3     throw "Error: " + splited.length + " = " + splited;