зеркало из https://github.com/mozilla/pjs.git
dcb19f44ab
Rhino: patch for IdScriptable.java and question about useDynamicScope Date: Mon, 16 Apr 2001 17:55:19 +0200 From: Igor Bukanov <igor.bukanov@windriver.com> Organization: Wind River To: Norris Boyd <nboyd@atg.com> Hi, Norris! Here is a patch to IdScriptable.java that fixes sealed semantic and makes Something.prototype.constructor to behave just as having DONTENUM attribute, not DONTENUM|READONLY|PERMANENT. It also renames seal_function to sealFunctions. I also have a following question. I added nextInstanceCheck to IdScriptable.java and its usage in realThis in NativeDate to emulate code from FunctionObject where it looks up prototype in search for NativeSomething instance if useDynamicScope is true. But could you describe why it is necessary? I can understand why doing something like var proto = new Date(); function Test() { } Test.prototype = proto; var test = new Test(); print(test.getDay()); // same as proto.getDay() would be useful in ceratain situations, but what it has to do with shared scopes? Regards, Igor |
||
---|---|---|
.. | ||
benchmarks | ||
js2 | ||
jsd | ||
jsdj | ||
jsj | ||
macbuild | ||
ref | ||
rhino | ||
semantics | ||
src | ||
tests | ||
.cvsignore | ||
Makefile.in | ||
landbranch.pl | ||
makefile.win |