gecko-dev/js
nboyd%atg.com 39f51f6c80 Subject:
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
2001-04-16 19:29:48 +00:00
..
benchmarks
js2 Fixed case, sorry 2001-02-02 01:08:06 +00:00
jsd -- not built -- 2001-04-14 18:57:00 +00:00
jsdj
jsj
macbuild Remove bogus access paths. r/sr=sfraser 2001-04-14 00:16:29 +00:00
ref
rhino Subject: 2001-04-16 19:29:48 +00:00
semantics Added more semantics 2001-02-07 05:08:44 +00:00
src Fix for bug #49130, a=phil 2001-04-14 17:18:14 +00:00
tests Fix incorrect for..in order dependency 2001-04-10 17:16:04 +00:00
.cvsignore
landbranch.pl
Makefile.in Fix fdlibm/mozjs dependency problem by making sure that fdlibm is always built before mozjs. 2001-02-04 06:27:59 +00:00
makefile.win