2428 Commits

Author SHA1 Message Date
beard%netscape.com
af70f28237 When using a JSScope that has a parent scope, don't bother defining the standard properties, they will be shared.
git-svn-id: svn://10.0.0.236/trunk@73040 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 05:10:46 +00:00
beard%netscape.com
62d8ad0434 A JSClass is a JSType now, and has a JSScope. Added addSlot, getSlot, getScope.
git-svn-id: svn://10.0.0.236/trunk@73039 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 05:09:37 +00:00
beard%netscape.com
64b6987bb7 remove unused file.
git-svn-id: svn://10.0.0.236/trunk@73025 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:10:04 +00:00
drapeau%eng.sun.com
ca8d63a49a Two main things:
1) Fix for 23775 (three files changed for this)

2) Many OJI unit tests added.


git-svn-id: svn://10.0.0.236/trunk@73017 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 02:28:31 +00:00
beard%netscape.com
4fa1b03210 putting the JSClass* in the current global scope, and looking up superclass rereferences.
git-svn-id: svn://10.0.0.236/trunk@73015 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 02:22:55 +00:00
rogerl%netscape.com
4587e4f98f Added support for 'debugger' as a statement. (Rob made me)
git-svn-id: svn://10.0.0.236/trunk@72996 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 00:08:10 +00:00
beard%netscape.com
b2ad6db1a4 JSClass support.
git-svn-id: svn://10.0.0.236/trunk@72846 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:58:17 +00:00
beard%netscape.com
36c74a5208 initial checkin, starting on a representation for JS2 classes.
git-svn-id: svn://10.0.0.236/trunk@72845 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:57:09 +00:00
rogerl%netscape.com
c263fddb6c Work to support 'this'.
git-svn-id: svn://10.0.0.236/trunk@72823 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 22:32:21 +00:00
nboyd%atg.com
b3f84fe9a2 Fix javadoc warning
git-svn-id: svn://10.0.0.236/trunk@72775 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 15:49:14 +00:00
rogerl%netscape.com
ae69e1c56c Changed use of Register to TypedRegister throughout.
git-svn-id: svn://10.0.0.236/trunk@72685 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 22:45:45 +00:00
rogerl%netscape.com
656a834b8a Support for TypedRegister
git-svn-id: svn://10.0.0.236/trunk@72684 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 22:44:46 +00:00
pavel%gingerall.cz
01d10dc6a7 - workaround of -rdynamic (JS_PERLCONNECT only)
git-svn-id: svn://10.0.0.236/trunk@72365 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-16 08:56:03 +00:00
brendan%mozilla.org
7a227ba4ec sfraser@netscape.com's fine GC_MARK_DEBUG enhancement for XPConnect.
git-svn-id: svn://10.0.0.236/trunk@72342 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-16 04:34:00 +00:00
rogerl%netscape.com
63176f2628 Added tests for scripts as strings.
git-svn-id: svn://10.0.0.236/trunk@72338 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-16 01:37:47 +00:00
rogerl%netscape.com
5f2e9befeb Mucking about with operator overlaoding plus initializing global context
- beginning type stuff.


git-svn-id: svn://10.0.0.236/trunk@72337 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-16 01:36:59 +00:00
rogerl%netscape.com
ebaa77a03f Fixed spelling.
git-svn-id: svn://10.0.0.236/trunk@72336 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-16 01:35:25 +00:00
rogerl%netscape.com
f7ed7da244 Added op= support.
git-svn-id: svn://10.0.0.236/trunk@72314 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-15 16:03:54 +00:00
nboyd%atg.com
45295349db Wrapping a class produces a NativeJavaClass.
git-svn-id: svn://10.0.0.236/trunk@72309 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-15 14:00:31 +00:00
rogerl%netscape.com
4be5f4c80d Mark top-level execution as 'script' rather than function - to handle
vars correctly.


git-svn-id: svn://10.0.0.236/trunk@72249 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 23:28:38 +00:00
rogerl%netscape.com
13c4b90ec8 Added 'Function' instruction, plus suppresses class output if there is
no super specified. (ok it's a hack, but it works)


git-svn-id: svn://10.0.0.236/trunk@72248 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 23:27:28 +00:00
rogerl%netscape.com
27c8e7b5f6 Adding support for Functions and Vars, preXcrement, object literals.
git-svn-id: svn://10.0.0.236/trunk@72247 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 23:26:15 +00:00
nboyd%atg.com
6345f2163b Fix bug 42097
git-svn-id: svn://10.0.0.236/trunk@72218 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 13:39:44 +00:00
pavel%gingerall.cz
c86edbe37a - fixes in original version of perlconnect (JSVALToSV SVToJSVAL etc.)
- object delegation (like JSCreateObject) Perl->JS
- ParlValue handles PerlObject correctly
- undef values handled correctly (in both directions)
- JS arrays may be tied to perl arrays
- error handlers supported on Perl side
- no globals
- several minor fixes


git-svn-id: svn://10.0.0.236/trunk@72202 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 07:23:58 +00:00
pavel%gingerall.cz
2e7ae72a07 - minor change of jsperl.h inclusion, matters for perlconnect build only
git-svn-id: svn://10.0.0.236/trunk@72201 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 07:18:41 +00:00
rginda%netscape.com
7e145bf1b9 -- NOT PART OF THE BUILD --
Conditionally build lcshell w/ jdk 1.1.8 or 1.2.2 on windows


git-svn-id: svn://10.0.0.236/trunk@72157 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 00:14:56 +00:00
mkaply%us.ibm.com
1471b70394 # 37239
r = mccabe, a = brendan
OS/2 bring-up - PR_CALLBACK for VisualAge


git-svn-id: svn://10.0.0.236/trunk@72156 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 00:07:08 +00:00
mccabe%netscape.com
a1fc28a313 First part of fix for 38495, support for exposing plugin methods to JavaScript.
This patch teaches XPConnected objects to look in their JavaScript __proto__ chain for any names they can't resolve themselves.  The rest of the fix to this bug sets the original DOM node object as the prototype of a new xpconnect-exposed plugin object, so javascript accesses will see names from both objects.

r=jst,brendan
a=beard


git-svn-id: svn://10.0.0.236/trunk@72141 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-13 23:18:21 +00:00
nboyd%atg.com
2c5799c5c0 Begin 1.5R2 effort.
Commit the following contributions:
* Andi Vajda's changes to allow embedders to capture the generated bytecode (and thus control
generated class names).
* Marshall Cline's changes to allow embedders to override the default Java object wrapping
behavior
* Kurt Westerfeld's change to handle calling static methods better


git-svn-id: svn://10.0.0.236/trunk@72114 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-13 14:33:54 +00:00
scc%mozilla.org
fd1efd70c8 fix type equivalence between |PRUnichar| and |jschar| now that |PRUnchar| may be |wchar_t| on select platforms
git-svn-id: svn://10.0.0.236/trunk@72073 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-12 23:52:31 +00:00
rogerl%netscape.com
39ff24678a Added check for FORMAT characters in new unicode cr/lf handling code.
git-svn-id: svn://10.0.0.236/trunk@72030 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-12 17:56:05 +00:00
brendan%mozilla.org
c80feb7387 Comply with weird ECMA nit: call (o.f)() (note parens around the function expression) must bind 'this' to the global object, not to o\! (41864, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@71779 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-08 06:46:18 +00:00
nboyd%atg.com
df21c60462 Fix formatting.
git-svn-id: svn://10.0.0.236/trunk@71718 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 14:51:08 +00:00
nboyd%atg.com
56995ca2ce Fix the following problem:
Subject:
        Odd behaviour on placement of .jar files?!
   Date:
        Mon, 05 Jun 2000 10:46:08 -0700
   From:
        John Raykowski <xski@xski.org>
     To:
        nboyd@atg.com




Hello,

I didn't want to post this directly as a rhino bug 'coz I think it may
be more of a JDK thing, but I thought I'd toss it to you as well.

The goal is to create a JavaScript object that implements a Java
interface. Straightforward enough and the example on the page using
ActionListener works without a hitch.  However, when I try to do the
same with my own interface, I get an error message: error instantiating
({0}): class {1} is interface or abstract (coming from
NativeJavaClass.construct).

Here's where it gets a bit strange.  Normally, I run with the jar files
in jre/lib/ext.  When I remove the rhino files from jre/lib/ext and
reference them explicitly on the commandline with the -cp option, it
works as expected and my script can implement the interface just fine.
Go figure.

Anyhoo, there ya go.  Like I said, I think its a JDK issue, but I
thought you'd be interested.  The attached zipfile contains a set of
sample code to demonstrate this problem.

Thanks heaps,

-jmr


git-svn-id: svn://10.0.0.236/trunk@71717 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 14:50:47 +00:00
brendan%mozilla.org
5dc04862aa Use localizable error message for out of memory.
git-svn-id: svn://10.0.0.236/trunk@71586 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-06 04:54:04 +00:00
brendan%mozilla.org
5f1a363242 Better fix, really (r=shaver for sure).
git-svn-id: svn://10.0.0.236/trunk@71585 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-06 04:41:05 +00:00
brendan%mozilla.org
622626eed1 Better control flow for catch clause code generation (r=shaver).
git-svn-id: svn://10.0.0.236/trunk@71583 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-06 04:27:37 +00:00
mccabe%netscape.com
e7a2fb518a Fix to potential leak introduced with fix to 40406.
Be conservative in handling the lifetime of the safe context created by XPConnect to execute JS Components, and save it off to be destroyed at cleanup time, even if some other safe context is registered with XPConnect via SetSafeJSContext.

r=vishy, a=brendan


git-svn-id: svn://10.0.0.236/trunk@71568 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-06 00:01:25 +00:00
brendan%mozilla.org
1a2aed2153 Fix missing $ bug when testing test_dir.
git-svn-id: svn://10.0.0.236/trunk@71466 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-03 19:20:03 +00:00
brendan%mozilla.org
43a21cdfce Avoid zero-length malloc (and assertbotch) in array_sort, just return true early\!
git-svn-id: svn://10.0.0.236/trunk@71462 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-03 19:00:28 +00:00
warren%netscape.com
cc5d426fbe Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
git-svn-id: svn://10.0.0.236/trunk@71450 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-03 09:46:12 +00:00
waldemar%netscape.com
89fc65eb7c Added parsing and printing of classes, interfaces, and namespaces
git-svn-id: svn://10.0.0.236/trunk@71339 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 04:35:44 +00:00
brendan%mozilla.org
4a68c03a16 Fix ECMA DontDelete compliance problems, which create getter/setter security holes (40760, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@71309 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 00:02:46 +00:00
nboyd%atg.com
b283c983bc Fix "in" operator for compiled mode.
git-svn-id: svn://10.0.0.236/trunk@71305 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 23:40:29 +00:00
nboyd%atg.com
e217417b5f Add column number and line source information to the EcmaError object.
git-svn-id: svn://10.0.0.236/trunk@71283 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 17:30:28 +00:00
mkaply%us.ibm.com
254b8674d0 # 40177
r = leaf, a = brendan
Fix tab in makefile


git-svn-id: svn://10.0.0.236/trunk@71270 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 14:15:39 +00:00
waldemar%netscape.com
f20b60ea74 Widened default line width to 30
git-svn-id: svn://10.0.0.236/trunk@71237 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 03:31:17 +00:00
waldemar%netscape.com
b956242026 Added function and constructor parsing and printing; fixed printing of blocks, compound statements, and ::
git-svn-id: svn://10.0.0.236/trunk@71236 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 03:30:58 +00:00
waldemar%netscape.com
64a453e946 Added two-argument linearBreak
git-svn-id: svn://10.0.0.236/trunk@71235 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 03:30:19 +00:00
brendan%mozilla.org
9515bca40c Use JS_ValueToId to go from user to internal property id, for integer-id optimality (40731, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@71184 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-31 22:10:53 +00:00