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)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
mozilla1.8beta2
People
(Reporter: ajschult784, Assigned: brendan)
References
()
Details
(Keywords: regression, testcase)
Attachments
(1 file)
|
157 bytes,
text/plain
|
Details |
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.
| Reporter | ||
Comment 1•20 years ago
|
||
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
Comment 2•20 years ago
|
||
Requesting 1.8b2/1.1 blocking for regression.
Flags: blocking1.8b2?
Flags: blocking-aviary1.1?
Updated•20 years ago
|
Flags: blocking1.8b2? → blocking1.8b2+
Comment 3•20 years ago
|
||
Checking in regress-290656.js; /cvsroot/mozilla/js/tests/js1_5/Regress/regress-290656.js,v <-- regress-290656.js initial revision: 1.1
Comment 4•20 years ago
|
||
We're wrapping up 1.8b2. Is this critical for the developer preview or can we move it to 1.8b3?
Comment 5•20 years ago
|
||
I think we should block for this regression.
Updated•20 years ago
|
Flags: testcase+
| Assignee | ||
Updated•20 years ago
|
Assignee: general → brendan
| Assignee | ||
Comment 6•20 years ago
|
||
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
| Assignee | ||
Comment 7•20 years ago
|
||
Fixed by the patch for bug 293782. /be
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Flags: blocking-aviary1.1?
You need to log in
before you can comment on or make changes to this bug.
Description
•