Граф коммитов

214 Коммитов

Автор SHA1 Сообщение Дата
beard%netscape.com 37684b46df added top-level "environment" associative array - which provides JavaScript access to Java System properties. 1999-06-04 18:06:25 +00:00
beard%netscape.com 27c457e6a1 First Checked In. 1999-06-04 18:03:06 +00:00
beard%netscape.com 1f8aa1d994 File Removed. 1999-06-04 17:43:35 +00:00
beard%netscape.com 4f5a2326f6 added Environment.java 1999-06-04 17:43:17 +00:00
norris%netscape.com 26673d9939 Subject:
Re: netscape.javascript.JSObject ?
        Date:
             Thu, 03 Jun 1999 17:52:42 -0700
       From:
             Frank Mitchell <frankm@eng.Sun.COM>
 Organization:
             Java Products Engineering
         To:
             Norris Boyd <norris@netscape.com>
  References:
             1 , 2 , 3 , 4 , 5 , 6 , 7 , 8




Norris Boyd wrote:
>
> Sorry--missed the checkin of a new file. It's there now.
>
> I'd also added a small change for the "inheritance" of JavaScript array methods.

Actually, I've already done that (and for String as well).  It still
fails some LC3 regression tests, though.

I'm including a tarfile that includes the previous changes and the new
ones.

Frank
1999-06-04 16:25:41 +00:00
norris%netscape.com 1756dcf1a9 Add NativeJavaConstructor.java 1999-06-04 16:06:14 +00:00
mang%subcarrier.org 2d4bb78638 Added doc comment 1999-06-03 23:39:57 +00:00
norris%netscape.com 45e66dd4d3 LC3 support: make Java arrays have Array.prototype as a prototype. 1999-06-03 23:38:47 +00:00
norris%netscape.com 099c73edaa Subject:
Re: Rhino LiveConnect: need help?
        Date:
             Wed, 02 Jun 1999 19:33:37 -0700
       From:
             Frank Mitchell <frankm@eng.Sun.COM>
 Organization:
             Java Products Engineering
         To:
             Scott Furman <fur@netscape.com>, Norris Boyd <norris@netscape.com>
         CC:
             mallen@eng.Sun.COM
  References:
             1 , 2 , 3 , 4




Scott Furman wrote:
> In order to bring Rhino LiveConnect support up to the level of the
> C-engine, the features of LiveConnect version 2 and version 3 would
> need to be added.  You can see some details of LC2 and LC3 features
> here.  I would guess that 80% of the time would be spent implementing
> one feature: LC3's new method overload resolution scheme.


OK, I think I have something that implements the new overloaded method
resolution scheme ... I'm still working on getting the regression tests
running smoothly, but from command-line testing it seems to work.  It's
not the *cleanest* code I've ever done, though: in particular, it has
too many static methods and type-checking code for my tastes.  (Hey,
should we spin the type coercion and comparison stuff to some other
module entirely?  Right now it's mostly in JavaNativeObject, with the
preference stuff in JavaNativeMethod.)  I'm also not sure why some of
this stuff is public, and whether there might be backward-compatibility
problems with what I've done, particularly in repurposing the
COMPARISON_* constants.

Would you guys be kind enough to review this for me?  I'm hoping to
check it in once I get an ID, but it wouldn't hurt to have another pair
of eyes or three (pairs, I mean).  I've attached a tar/gzip of the
source files I've changed (or added), plus a diff.

Thanks,
Frank
1999-06-03 23:38:00 +00:00
norris%netscape.com ad3fb5ff8c Subject:
Re: Rhino LiveConnect: need help?
        Date:
             Wed, 02 Jun 1999 19:33:37 -0700
       From:
             Frank Mitchell <frankm@eng.Sun.COM>
 Organization:
             Java Products Engineering
         To:
             Scott Furman <fur@netscape.com>, Norris Boyd <norris@netscape.com>
         CC:
             mallen@eng.Sun.COM
  References:
             1 , 2 , 3 , 4




Scott Furman wrote:
> In order to bring Rhino LiveConnect support up to the level of the
> C-engine, the features of LiveConnect version 2 and version 3 would
> need to be added.  You can see some details of LC2 and LC3 features
> here.  I would guess that 80% of the time would be spent implementing
> one feature: LC3's new method overload resolution scheme.


OK, I think I have something that implements the new overloaded method
resolution scheme ... I'm still working on getting the regression tests
running smoothly, but from command-line testing it seems to work.  It's
not the *cleanest* code I've ever done, though: in particular, it has
too many static methods and type-checking code for my tastes.  (Hey,
should we spin the type coercion and comparison stuff to some other
module entirely?  Right now it's mostly in JavaNativeObject, with the
preference stuff in JavaNativeMethod.)  I'm also not sure why some of
this stuff is public, and whether there might be backward-compatibility
problems with what I've done, particularly in repurposing the
COMPARISON_* constants.

Would you guys be kind enough to review this for me?  I'm hoping to
check it in once I get an ID, but it wouldn't hurt to have another pair
of eyes or three (pairs, I mean).  I've attached a tar/gzip of the
source files I've changed (or added), plus a diff.

Thanks,
Frank
1999-06-03 23:22:27 +00:00
rogerl%netscape.com 2928c8a438 Changed behaviour of Script.exec so that it gains access to the current
scope when invoked, rather than grabbing the topmost. Prevented exec from
being called indirectly.
1999-06-03 00:08:00 +00:00
rogerl%netscape.com aa6634762d blowing off commented out junk 1999-06-02 18:07:40 +00:00
norris%netscape.com c4a8882517 Fix NullPointerException for "abc".match("a\"); 1999-06-02 16:12:19 +00:00
rogerl%netscape.com 87b0695b45 Bug #6359 and other changes motivated by Waldemar's specification. 1999-05-26 22:28:32 +00:00
norris%netscape.com d2409b9e5b Fix bug 6705. 1999-05-26 19:55:51 +00:00
norris%netscape.com 925eb75371 Remove class path for merging into a single JAR file. 1999-05-26 19:52:40 +00:00
norris%netscape.com 1816055731 fix node property printing 1999-05-26 19:48:45 +00:00
norris%netscape.com dbcd8dbb66 clean up formatting 1999-05-26 19:48:02 +00:00
beard%netscape.com 4415dbcda7 First Checked In. 1999-05-24 20:48:58 +00:00
beard%netscape.com 20540e64d7 added mozilla/js/rhino/org/mozilla/javascript/ListenerCollection.java 1999-05-23 20:07:05 +00:00
norris%netscape.com f138298617 Manifest for jstools.jar to enable use of 1.2 -jar option. 1999-05-21 06:13:37 +00:00
norris%netscape.com e2b6e5bcc0 Add methods for getting and setting key-value pairs. 1999-05-20 23:54:53 +00:00
norris%netscape.com 1fa0abf6f3 Remove Java 2 dependency. 1999-05-19 23:58:37 +00:00
norris%netscape.com cd2bce09ff Fix bug 6313 'Rhino: "new Function" doesn't work properly with superglobal'
Also clean up Context.exit() to be more consistent with Context.enter(),
and make SecuritySupport work with JavaAdapter.
1999-05-18 23:10:20 +00:00
norris%netscape.com da040c8847 Fix formatting. 1999-05-18 22:55:11 +00:00
norris%netscape.com d2be04fb36 Clearer formatting. 1999-05-18 22:54:15 +00:00
norris%netscape.com ad7bde6769 Add submission:
Subject:
            Re: Modified Context.java
       Date:
            Sat, 15 May 1999 08:01:37 +0000
      From:
            "Ian D. Stewart" <idstewart@softhome.net>
        To:
            Norris Boyd <norris@netscape.com>
 References:
            1 , 2 , 3 , 4 , 5




Ian D. Stewart wrote:

  Norris Boyd wrote:




    Can I help with EventListener collector?

  Actually, I have a working implementation complete (attatched), but by all means, feel free to add any functionality you feel
  may be missing, or to tweak the code .

Norris,

After I sent I my last e-mail, I noticed some potential issues using Object[] in ListenerCollection.getListeners(Class iface).
I'm attatching a new version, which uses a Vector object.  This should resolve those issues.


Ian
1999-05-18 22:32:25 +00:00
norris%netscape.com 481172ae0b Subject:
Rhino SecurityException patch
   Date:
        Tue, 11 May 1999 12:25:50 -0400
   From:
        Andrew Wason <aw@softcom.com>
     To:
        Norris Boyd <norris@netscape.com>




Sorry if you aren't the right person to submit Rhino patches to.

I couldn't get Rhino to run under JDK1.2 with a SecurityManager installed
(e.g. java -Djava.security.manager=java.lang.SecurityManager).  I
understand the JavaAdapter stuff won't work - but I would still like to use
Rhino without that piece.

I've attached a small patch which catches and ignores the
SecurityExceptions so that Rhino can run with a SecurityManager but without
JavaAdapter.


Andrew
--
Andrew Wason
SoftCom, Inc.
aw@softcom.com
1999-05-11 16:46:30 +00:00
norris%netscape.com 70e2ddfa1f A statement like "var java;" was hiding the java package defined in the
shared global since we weren't looking up the prototype chain.
1999-05-10 18:09:49 +00:00
mccabe%netscape.com a47510f99d Added references to the JavaAdapter and classfile classes. 1999-05-06 23:49:10 +00:00
norris%netscape.com b912fb1d8e Marginal performance tweak. 1999-05-06 23:17:12 +00:00
mccabe%netscape.com 9e675bb870 Initial checkin of distribution makefile system for our brandfangled free source Rhino. 1999-05-06 07:51:15 +00:00
norris%netscape.com 3b4d810964 Update release string. 1999-05-05 23:29:06 +00:00
norris%netscape.com 3bc469d6ab Handle the case where f is null in "new f". 1999-05-04 17:23:13 +00:00
norris%netscape.com 7d8669fc9e Fix spelling, don't claim uniqueness. 1999-05-03 17:56:07 +00:00
norris%netscape.com 3d522b3a69 Make it purdy. 1999-05-03 17:55:21 +00:00
norris%netscape.com e43d1ea1e1 Add README with support for LXR. 1999-05-03 17:53:10 +00:00
norris%netscape.com 93c85436e2 Add new example. 1999-04-30 19:49:34 +00:00
norris%netscape.com c999e3e6be Better (?) error when initializing and the security resource isn't found. 1999-04-30 16:56:43 +00:00
norris%netscape.com 2d389423af Fall through to number case only after considering character and boolean
independently.
1999-04-29 20:51:50 +00:00
norris%netscape.com 02d3b99592 Fix bug where conversions of numbers to booleans in calls to Java methods were producing
IllegalArgumentExceptions.
1999-04-29 17:53:05 +00:00
norris%netscape.com 2cd15ff9fe Help message should indicate that -1 is an acceptible optimizer value. 1999-04-29 17:22:20 +00:00
rogerl%netscape.com 18f533575b Clean-up some bytecode leftovers.
Added assertions, non-greedy opt.
1999-04-28 23:08:14 +00:00
rogerl%netscape.com a862d28b3d Added method to construct a new RegExp. 1999-04-28 23:07:14 +00:00
rogerl%netscape.com df9f1aa1c8 Added interface method to construct a new RegExp. 1999-04-28 23:06:26 +00:00
rogerl%netscape.com d982b7fd64 Using regExpProxy to construct regexp literals 1999-04-28 23:05:43 +00:00
beard%netscape.com 53e790fef3 added JavaAdapter.java 1999-04-27 19:56:20 +00:00
beard%netscape.com bdf94c7535 Using the property "org.mozilla.javascript.JavaAdapter" to allow the JavaAdapter class to come from another package. 1999-04-27 19:55:53 +00:00
beard%netscape.com 1a72358ec1 added classes in org.mozilla.classfile 1999-04-27 19:43:56 +00:00
norris%netscape.com 83a8060991 Better javadoc. 1999-04-27 16:55:44 +00:00
norris%netscape.com 3ec3e8c70a Clean up, add javadoc. 1999-04-27 03:56:23 +00:00
norris%netscape.com 92847bcfca Make JavaAdapter work on mozilla-only. 1999-04-26 20:41:57 +00:00
beard%netscape.com 1bfb6db3b0 made the class to use for the JavaAdapter selectable via the Java property "org.mozilla.javascript.JavaAdapter" 1999-04-24 06:28:17 +00:00
norris%netscape.com fb18c81dfe If the security resource isn't present, catch the exception and proceed. 1999-04-23 19:54:28 +00:00
norris%netscape.com a2b9800d35 Clean up javadoc. 1999-04-23 17:31:59 +00:00
norris%netscape.com be56635558 Clean up javadocs; make Context creation faster. 1999-04-23 17:31:09 +00:00
norris%netscape.com aaf0996351 Clean up formatting. 1999-04-23 17:30:31 +00:00
norris%netscape.com fd2121d6c8 Transfer examples to mozilla. 1999-04-22 20:58:54 +00:00
norris%netscape.com 73531f9924 Add examples to mozilla. 1999-04-22 20:41:57 +00:00
norris%netscape.com 46fe713382 Fix the following bug:
Subject:
        Context.newArray() bug
   Date:
        Thu, 22 Apr 1999 00:26:29 -0700
   From:
        beard@netscape.com (Patrick Beard)
     To:
        Norris Boyd <norris@netscape.com>

When the arguments array gets created, its prototype isn't set up
correctly. I think the problem is in Context.newArrayHelper(), which isn't
able to look up the "Array" constructor in the passed-in scope. For this
reaon, top-level scripts that use "arguments.length" don't work.

- Patrick
1999-04-22 18:29:07 +00:00
beard%netscape.com 679f173ebe First Checked In. 1999-04-22 02:50:18 +00:00
norris%netscape.com fc05296d97 Load optimizer package from com.netscape. 1999-04-21 04:40:36 +00:00
norris%netscape.com ade142a34c Forgot to add Messages.properties. 1999-04-20 20:21:55 +00:00
norris%netscape.com 3a188e59ad Publish Rhino as open source. 1999-04-19 20:43:53 +00:00