Closed Bug 344052 Opened 17 years ago Closed 17 years ago

Functions prototyping partially broken

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 343966

People

(Reporter: dao, Unassigned)

Details

(Keywords: regression, testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060709 Minefield/3.0a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060709 Minefield/3.0a1

see testcase

Reproducible: Always

Steps to Reproduce:
Function.prototype.foo = true;
function y(){};
alert (y.foo);

Actual Results:  
undefined

Expected Results:  
true

Regressed within the last few days (worked last Friday, I think). Not happening on the 1.8 branch.
Attached file testcase
Regression range:
http://bonsai.mozilla.org/cvsquery.cgi?date=explicit&mindate=2006-07-07+02%3A00&maxdate=2006-07-08+05%3A00

Looks like a regression from bug 343417.
Blocks: 343417
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Yeah, I'm going to look into this tomorrow.

*** This bug has been marked as a duplicate of 343966 ***
No longer blocks: 343417
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Checking in regress-344052.js;
/cvsroot/mozilla/js/tests/js1_5/Function/regress-344052.js,v  <--  regress-344052.js
initial revision: 1.1

I am surprised we didn't have test coverage for this already.
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.