mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
39f51f6c80
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 | ||
landbranch.pl | ||
Makefile.in | ||
makefile.win |