Closed Bug 37213 Opened 25 years ago Closed 25 years ago

prototyping to a second Constructor doesn't do anything

Categories

(Core :: JavaScript Engine, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: georg.maass, Assigned: rogerl)

Details

Sample: ------- function myConstr(a) { myProp = a; } myConstr.prototype = new Array; myObject = new myConstr(); With M16 this results in a object myObject, that has only the properties and methods from myConstr but nothing from Array. No error message occurs. With NN4.x it inherits the properties and methods from Array and then adds the properties and methods from myContr. What NN4.x does is what is intended. What M16 does is a bug.
I'm not seeing this happen with current builds. It might have been a recent bug fix or maybe I'm not understanding the problem. Reopen if you still see this with current builds (and attach a test case to make sure I get it)
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.