ToT WebKit crashes while loading ES6 compatibility table
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 May 2015 05:15:56 +0000 (05:15 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 May 2015 05:15:56 +0000 (05:15 +0000)
commit649969abfaa5caed8e7126224c955910193d9aae
tree8f7516f827877f6892657cb41f7d6d0ac500af48
parent336bba68f5e7e9e74891d2e18cbe65dd8c35e2e3
ToT WebKit crashes while loading ES6 compatibility table
https://bugs.webkit.org/show_bug.cgi?id=144726

Reviewed by Filip Pizlo.

Source/JavaScriptCore:

The bug was caused by parseClass superfluously avoiding to build up the string after seeing {.

Always build the identifier here as it could be a method name.

* parser/Parser.cpp:
(JSC::Parser<LexerType>::parseClass):

LayoutTests:

Added new test cases.

* js/class-syntax-string-and-numeric-names-expected.txt:
* js/script-tests/class-syntax-string-and-numeric-names.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/js/class-syntax-string-and-numeric-names-expected.txt
LayoutTests/js/script-tests/class-syntax-string-and-numeric-names.js
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/parser/Parser.cpp