Possible Duplicate:
What it the significance of the Javascript constructor property?
In the Javascript docs at developer.mozilla.org, on the topic of inheritance there's an example
// inherit Person
Student.prototype = new Person();
// correct the constructor pointer because it points to Person
Student.prototype.constructor = Student;
I wonder why should I update the prototype's constructor property here?