Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
None
-
None
-
Unknown
Description
org.apache.cxf.javascript.JavascriptUtils generates serializer code in JS that surrounds individual serializations with block scope. This is allegedly (according to a code comment) to provide a "block for local variables", but JS does not actually support block scope:
https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Block_Statement
Instead, all of these chunks of code run in the same scope. I am unsure as to whether this attempt at keeping a clean scope has any effect on extant code.