Closed Bug 290656 Opened 20 years ago Closed 20 years ago

Get "TypeError: bar is not a constructor" after bug 254974

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.8beta2

People

(Reporter: ajschult784, Assigned: brendan)

References

()

Details

(Keywords: regression, testcase)

Attachments

(1 file)

If I try to watch a video on http://www.ifilm.com/, JS Console show an error,
"TypeError: LinkedListItem is not a constructor".  This started happening
sometime between linux trunk builds 2004080905 and 2004080906, so the fix for
bug 254974 looks like what changed the behavior.  I'll attach a testcase.
Attached file testcase
js> function foo() {
   with(foo) {
      this["insert"] = function(){ var node = new bar(); };
   }
   function bar() {}
}
js> var list = new foo();
js> list.insert();
typein:3: TypeError: bar is not a constructor
Requesting 1.8b2/1.1 blocking for regression.
Flags: blocking1.8b2?
Flags: blocking-aviary1.1?
Flags: blocking1.8b2? → blocking1.8b2+
Checking in regress-290656.js;
/cvsroot/mozilla/js/tests/js1_5/Regress/regress-290656.js,v  <--  regress-290656.js
initial revision: 1.1
We're wrapping up 1.8b2. Is this critical for the developer preview or can we
move it to 1.8b3? 
I think we should block for this regression.
Flags: testcase+
Assignee: general → brendan
Patching in bug 293782, without regressing bug 137000 (that's the other bug to
test after the patch lands; there may be others as well, such as the bug this
bug blocks...).

/be
Status: NEW → ASSIGNED
Depends on: 293782
OS: Linux → All
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → mozilla1.8beta2
Fixed by the patch for bug 293782.

/be
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Flags: blocking-aviary1.1?
verified fixed 1.9 20060818
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: