Bug 4042
| Summary: | this.constructor doesn't point to anonymous functions | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Paul Sowden <paul> |
| Component: | JavaScriptCore | Assignee: | Maciej Stachowiak <mjs> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | vicki |
| Priority: | P2 | ||
| Version: | 420+ | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
Paul Sowden
The following code doesn't work as expected:
var myObj1 = function () {
alert(this.constructor);
};
var obj = new myObj1();
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Eric Seidel (no email)
*** This bug has been marked as a duplicate of 3537 ***