-
cwzwarich@webkit.org authored
Reviewed by Geoff Garen. Bug 24291: REGRESSION (r38635): Single line JavaScript comment prevents HTML button click handler execution <https://bugs.webkit.org/show_bug.cgi?id=24291> <rdar://problem/6663472> Add an extra newline to the end of the body of the program text constructed by the Function constructor for parsing. This allows single line comments to be handled correctly by the parser. JavaScriptCore: * runtime/FunctionConstructor.cpp: (JSC::constructFunction): LayoutTests: * fast/events/onload-single-line-comment-expected.txt: Added. * fast/events/onload-single-line-comment.html: Added. * fast/js/function-constructor-single-line-comment-expected.txt: Added. * fast/js/function-constructor-single-line-comment.html: Added. * fast/js/resources/function-constructor-single-line-comment.js: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41565 268f45cc-cd09-0410-ab3c-d52691b4dbfc
5c7f83df