Bug 4042

Summary: this.constructor doesn't point to anonymous functions
Product: WebKit Reporter: Paul Sowden <paul>
Component: JavaScriptCoreAssignee: Maciej Stachowiak <mjs>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: vicki
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   

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 ***