<rdar://problem/6516853> (r39682-r39736) JSFunFuzz: crash on "(function(){({ x2: x }), })()"
<https://bugs.webkit.org/show_bug.cgi?id=23479>

Reviewed by Geoff Garen.

Automatic semicolon insertion was resulting in this being accepted in the initial
nodeless parsing, but subsequent reparsing for code generation would fail, leading
to a crash.  The solution is to ensure that reparsing a function performs parsing
in the same state as the initial parse.  We do this by modifying the saved source
ranges to include rather than exclude the opening and closing braces.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40131 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7 files changed