shhac Expert Cheater
Reputation: 0
Joined: 30 Oct 2007 Posts: 108
|
Posted: Thu Dec 17, 2009 4:10 pm Post subject: [JavaScript] Math.__proto__ and intended behaviour |
|
|
If I do something like this | Code: | Math.__proto__.Q = {
toString : function(){
return 'Qu';
}
};
Math.__proto__.C = {
toString : function(){
return 'Co';
}
};
Math.__proto__.M = {
toString : function(){
return 'Ma';
}
}; | Then the following seem to exist | Code: | Math.Q.C
Math.Q.M
Math.C.M
Math.Q.C.Q
Math.Q.C.C
Math.Q.C.M
etc. | (tested on Firefox)
Is this expected behavior/can you confirm on other browsers? If not I might have to submit a bug report.
|
|