| Summary: | optional identifier of function expressions is ignored | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Florian Loitsch <florian> |
| Component: | kjs | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
first testcase using the optional identifier of function expressions.
second testcase |
||
Created attachment 11675 [details]
first testcase using the optional identifier of function expressions.
inside f, the function h calls itself recursively using "g".
The result should be "done" and "g". and not "g" and "g", as my current
version prints.
Created attachment 11676 [details]
second testcase
the current version "bugs" on this example...
Was already fixed in trunk for KDE 4. Slightly different solution has been implemented for KDE 3.5.7. |
Version: (using KDE KDE 3.4.0) Installed from: Unlisted Binary Package OS: Linux Javascript allows function expressions to have optional identifiers only visible within the function (Ecmascript Section 13): var f = function foo(x) {/*foo is only visible in here*/}; Konqueror seems to ignore this optional identifier. I will attach 2 simple examples.