Invalid flags in a RegExp literal should be an early SyntaxError
[WebKit-https.git] / JSTests / stress / construct-spread-overwritten-variable-2.js
1 //@ runDefault
2
3 (function(){
4     var x = 42;
5     new x(...[x = function(){ }]);
6 })();