-
cwzwarich@webkit.org authored
Reviewed by Oliver Hunt. Bug 24350: REGRESSION: Safari 4 breaks SPAW wysiwyg editor multiple instances <https://bugs.webkit.org/show_bug.cgi?id=24350> <rdar://problem/6674182> The SPAW editor's JavaScript assumes that toString() on a function constructed with the Function constructor produces a function with a newline after the opening brace. JavaScriptCore: * runtime/FunctionConstructor.cpp: (JSC::constructFunction): Add a newline after the opening brace of the function's source code. LayoutTests: * fast/js/function-constructor-newline-after-brace-expected.txt: Added. * fast/js/function-constructor-newline-after-brace.html: Added. * fast/js/resources/function-constructor-newline-after-brace.js: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41851 268f45cc-cd09-0410-ab3c-d52691b4dbfc
da837d15