Closed
Bug 264470
Opened 20 years ago
Closed 20 years ago
error or feature in operator 'in' ?
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 264469
People
(Reporter: rusanov, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10
if execute below script , message box "true - undefined - undefined"
operator 'in' find variable 'init' defined in function, this is error or feature?
var obj = new Object();
obj.func = function()
{ var init = 'this init value';
};
alert(('init' in obj.func) + ' - ' + obj.func['init'] + ' - ' + obj.func.init);
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1•20 years ago
|
||
*** This bug has been marked as a duplicate of 264469 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•