Bug 4042 - this.constructor doesn't point to anonymous functions
Summary: this.constructor doesn't point to anonymous functions
Status: RESOLVED DUPLICATE of bug 3537
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Maciej Stachowiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-18 10:39 PDT by Paul Sowden
Modified: 2005-09-27 12:41 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Sowden 2005-07-18 10:39:31 PDT
The following code doesn't work as expected:


var myObj1 = function () {
	alert(this.constructor);
};

var obj = new myObj1();
Comment 1 Eric Seidel (no email) 2005-09-27 12:41:47 PDT

*** This bug has been marked as a duplicate of 3537 ***