Closed Bug 27189 Opened 25 years ago Closed 25 years ago

scope while compiling different js files in the same object

Categories

(Core :: JavaScript Engine, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 26060

People

(Reporter: davidb, Assigned: rogerl)

Details

Hi,

I have cx+obj as prototype("father") for diffrent cx+obj ("son").  When I 
compile a script in the "father" obj it is recognized in the other couple and 
everythign is working fine. Also when I define a property in the son the 
property is recorgnized within a function. 
Then, I compile another script, which contains functions, in the father.
The I call JS_ExecuteScript for first script in using the son cx+obj. The 
functions in the second script are recognized in the son, but properties 
defined in the son before calling the functions are not recognized within the 
functions. (It does not matter if the properties defined usgin 
JS_DefineProperty or just as a variables in the script). When the functions 
where written in the first script (the script which was executed) everything 
worked just fine.  Also when I compile the second script twice inthe father and 
in the son, everything worked just fine. 

I'm using JS 1.5.

Thanks,

dudu.
Roger, could you review this?
Assignee: mccabe → rogerl

*** This bug has been marked as a duplicate of 26060 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.