The propagation of the bug into the optimizer happens during changes to make optimizer to generate single class when made code for Script initialization shared between compiler and interpreter.
Status: NEW → ASSIGNED
Created attachment 132319 [details] [diff] [review] Fix: initialize scope and prototype for Script instances in NativeScript.jsConstructor If Script is called as a constructor, it will get the proper parent and prototype from the generic code to initialize newly constructed objects but if it is called as a function, then it is the responsibility of the call implementation to do the job.
I committed the fix
Status: ASSIGNED → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → FIXED
Testcase added to JS testsuite: mozilla/js/tests/js1_5/Scope/regress-220584.js Before Igor's fix, failed in Rhino exactly as described above.
Trageting as resolved against 1.5R5
Target Milestone: --- → 1.5R5
You need to log in before you can comment on or make changes to this bug.