Commit Graph

2821 Commits

Author SHA1 Message Date
nboyd%atg.com
0c77e5b5dc Update javadoc. 2000-11-14 20:08:53 +00:00
nboyd%atg.com
f66f393b8d Fix bug:
slobo@espial.com wrote:
>
> Hello Mike
>
> In the following test case, tester returns "undefined cat" in Rhino
> while in NN it returns "meow cat".
>
> Thanks
>
> Steven
>
> /////////////////////////////////////////////////////////////////////
> function tester(nest){
>     var nest = nest+" cat";
>     alert(nest);
>     // nest now contains the value undefined.
> }
>
> tester("meow");
2000-11-14 13:30:55 +00:00
rginda%netscape.com
2c4646c800 refactored lexer bits from icodeasm into lexutils
refactored exceptions from icodeasm into exception*
fixed LeadingCap method names to be interCapped
added string8 and string16 typedefs (as opposed to string vs String)
2000-11-14 03:11:54 +00:00
nboyd%atg.com
d550dceb79 Subject:
More changes to support non NativeJavaObject wrappers
   Date:
        Fri, 03 Nov 2000 17:56:38 +0100
   From:
        Igor Bukanov <igor@icesoft.no>
     To:
        nboyd@atg.com




Hi, Norris,

In post 1.5 rhino one can introduce own wrappers for arbitrary Java
objects. But I think to fully support this
org.mozilla.javascript.ScriptRuntime should be changes as well: its eq
and shallow_eq contain references to NativeJavaObject, this should be
replaced at least to Wrapper (see the atached patch). Even better
solution would be to add to WrapHandler methods to compare wrappers: I
can send a patch for that as well.

There is a small usability problem as well: if
org.mozilla.javascript.JavaMembers would be public I do not need to copy
it to a package with non NativeJavaObject.java wrapper.

Regards, Igor
2000-11-13 22:10:35 +00:00
jeff.dyer%compilercompany.com
7c6f29466f Fix the first startup test. 2000-11-08 21:05:58 +00:00
mccabe%netscape.com
ea579e0496 Fix to 58946.
Make try { ... } catch(exn) { return exn } work by ensuring that the return value (exn) is maintained on the stack as we pop off scopes to return from the try/catch/finally.  The newly added JSOP_SWAP opcode helps us bubble.

This fixes a regression uncovered by the fix to 56716.

(I've noticed that this causes *depend* builds of the standalone JS shell to crash on this construct, but I've tested in the Mozilla build, and the dependencies seem to solve the problem there.)

r=brendan.mozilla.org
sr=jband@netscape.com
2000-11-08 20:39:43 +00:00
beard%netscape.com
be65966d92 Replaced occurrences of $$, $1, $2 with result, first, second. CodeWarrior doesn't like $ characters in identifiers. 2000-11-08 19:50:39 +00:00
pschwartau%netscape.com
443dc25546 The const keyword is non-ECMA and not currently implemented in Rhino 2000-11-08 01:10:43 +00:00
pavel%gingerall.cz
5ea133c95a - jsperl.c compiled with js programm, not with libjs
- better JS value tie methods
- memory leaks fixed
- support of digging native js error from exception
2000-11-07 15:24:49 +00:00
nboyd%atg.com
629043f2b8 Clean up debug APIs 2000-11-07 03:20:56 +00:00
rogerl%netscape.com
ec89b08c8b Fixed warnings & bogus qualifier. 2000-11-07 01:09:45 +00:00
rogerl%netscape.com
d2f5ecf8ff Fixed statics and constructors bitrot. 2000-11-07 00:59:27 +00:00
rogerl%netscape.com
3e4ebc2d54 More tests and changed 'verify' to live separately. 2000-11-07 00:58:42 +00:00
rogerl%netscape.com
30fd08d267 Testcase for adding setter to non-final field. 2000-11-06 23:00:00 +00:00
rogerl%netscape.com
67413c204e Fixed compare bugs. Report results from js2 test cases. Rewrote generic
equal to match ECMA 1.5
2000-11-06 22:57:10 +00:00
waldemar%netscape.com
3bc827cfed Defined UseIncludesExcludes. Removed support for a:🅱️:c. 2000-11-04 10:47:47 +00:00
waldemar%netscape.com
8b66cf247e Added 'include' and 'exclude' non-reserved words 2000-11-04 10:46:24 +00:00
mccabe%netscape.com
ca67aac5d5 Fix to 58008. Add missing ECMA-specified fuctions Date.prototype.toDateString, toTimeString, toLocaleDateString, toLocaleTimeString. Commoned some code to toLocale_helper and date_format.
Also make several formerly class static variables lazily initialized.
2000-11-03 21:28:49 +00:00
rogerl%netscape.com
2322a26c61 More tests 2000-11-03 02:42:23 +00:00
rogerl%netscape.com
06dade6b2e Fixed adding setter to virtual inherited field. 2000-11-03 02:42:01 +00:00
pschwartau%netscape.com
df5477c1c4 initial add 2000-11-03 02:27:44 +00:00
jeff.dyer%compilercompany.com
125d51cbe9 Don't care if required named come after optional named parameters. 2000-11-03 01:44:30 +00:00
rogerl%netscape.com
854f8c34f8 Fixed bogus rest reference, added named tests. 2000-11-02 19:40:42 +00:00
mccabe%netscape.com
6af283c263 Fix previous fix to conform to brendan-nit. 2000-11-02 03:38:09 +00:00
mccabe%netscape.com
b37e1ddf8a Fix to 58007. Add Date.prototype.toDateString, toTimeString methods, by commoning existing date_format helper function with toString. ECMA-262 ed. 3 conformance.
r=brendan@mozilla.org
sr=jband@mozilla.org
2000-11-01 23:57:37 +00:00
nboyd%atg.com
c82387d076 Upgrade to Ant 1.2 and remove deprecated tasks. 2000-11-01 18:43:55 +00:00
rogerl%netscape.com
0ad52b2c9b Fixed signed/unsigned whinage. 2000-11-01 02:04:04 +00:00
rogerl%netscape.com
25a870f386 Simple call tests. 2000-11-01 01:55:46 +00:00
rogerl%netscape.com
25d50d736d Fixed rest parameter index handling. 2000-11-01 01:55:13 +00:00
rogerl%netscape.com
c6dbe02e61 Fixed signed/unsigned whine. 2000-11-01 01:48:15 +00:00
rogerl%netscape.com
c8d1c1d0bb Fixed JSArray for 1.5 semantics stuff. Changed readEvalFile to stop
doing line at a time nonsense. Fixed ExprNode::Index cases to use
InvokeExprNode instead of Binary.
2000-11-01 01:39:43 +00:00
mccabe%netscape.com
a6e9551a7c Fix sense of don't-fail-on-warning check propagated from js.c.
Thanks to John Bandhauer for the catch.

Not part of Mozilla.
2000-10-30 22:42:48 +00:00
nboyd%atg.com
2a73169e97 Fix bug 57060 for/in loop enumerates array elements as numbers, not strings 2000-10-30 19:46:02 +00:00
nboyd%atg.com
0470e048ab Fix bugs:
56318  function literals with names don't work right
57045  negative integers as object properties: weird behavior
58479  functions defined within conditional phrases are always crea
2000-10-30 19:34:11 +00:00
shaver%mozilla.org
3b105350a3 #56716, run finally{} before return from try{}/catch{}, r=mccabe, sr=brendan 2000-10-29 18:54:58 +00:00
brendan%mozilla.org
bc3f635a48 Use 0 - i rather than -i to avoid unsigned warning on Windows. 2000-10-29 18:08:40 +00:00
nboyd%atg.com
13c17e9f43 Fix formatting 2000-10-29 18:07:26 +00:00
brendan%mozilla.org
12e9876d3d Handle negative-int-fits-in-jsval string literals as property names equivalent to their int conversions (57043, r=shaver, sr=jband). 2000-10-29 01:30:16 +00:00
waldemar%netscape.com
76e8bcd8d6 Allowed multiple units in a unit expression 2000-10-28 05:55:47 +00:00
waldemar%netscape.com
e84153e3fc Renamed OrdinaryInitialIdentifierCharacter and OrdinaryContinuingIdentifierCharacter to InitialIdentifierCharacter and ContinuingIdentifierCharacter 2000-10-28 05:55:19 +00:00
waldemar%netscape.com
4489b4c7f0 Initial version 2000-10-28 05:54:44 +00:00
waldemar%netscape.com
8df2f5a1c4 Added JS20/Units 2000-10-28 05:53:23 +00:00
rogerl%netscape.com
71aae60c11 Fixed gcc whine about char16. 2000-10-28 00:07:36 +00:00
rogerl%netscape.com
2d9a47fce0 Removed unused parameter. 2000-10-28 00:01:58 +00:00
rogerl%netscape.com
ddf915e607 Named parameter work. 2000-10-27 23:55:31 +00:00
nboyd%atg.com
af79f7675a Add javadoc. 2000-10-27 20:17:56 +00:00
nboyd%atg.com
577b2d7b62 Fix tree and icode printing. 2000-10-27 20:17:19 +00:00
mccabe%netscape.com
bf56ffa531 Changes to update standalone JavaScript and Liveconnect library builds to the New Era of NSPR 4 and JDK 1.2.
Fixes for OSF; they they assume the existence of /share/builds/components/[jdk|nspr]/SOME_VERSION/etc/etc.  Sorry, external folks!

Not part of the Mozilla build.
2000-10-27 01:10:09 +00:00
mccabe%netscape.com
eedc61dabe Changes to update standalone JavaScript and Liveconnect library builds to the New Era of NSPR 4 and JDK 1.2.
Fixes for Linux and SunOS; they assume the existence of /share/builds/components/[jdk|nspr]/SOME_VERSION/etc/etc.  Sorry, external folks!

Not part of the Mozilla build.
2000-10-27 00:08:31 +00:00
mccabe%netscape.com
cf952461b1 Fix standalone liveconnect build to not complain about missing fdlibm when asked to clean or clobber.
Not part of the Mozilla build.
2000-10-26 23:48:16 +00:00