implemented setPrototype() to make prototype changeable.
This commit is contained in:
parent
d918bf0bf5
commit
b37cba7fe3
1 changed files with 10 additions and 0 deletions
|
@ -105,6 +105,16 @@ public abstract class ESObject extends ESValue {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Allow the prototype to be set, added 2001-04-05 by Hannes Wallnöfer
|
||||
*
|
||||
* @param prototype The new prototype object
|
||||
*/
|
||||
public void setPrototype(ESObject prototype) {
|
||||
this.prototype = prototype;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return the name of the class of objects ([[class]]), as used in the default toString
|
||||
* method of objects (15.2.4.2)
|
||||
|
|
Loading…
Add table
Reference in a new issue