beard%netscape.com
05bf96ad86
added ImporterTopLevel.java
...
git-svn-id: svn://10.0.0.236/trunk@35948 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-19 23:38:35 +00:00
norris%netscape.com
5df4f6187b
Add support for selectively filtering Java classes' visibility to JS
...
git-svn-id: svn://10.0.0.236/trunk@35878 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-18 21:35:35 +00:00
norris%netscape.com
ee930ce3f8
Reduce need for a current context.
...
git-svn-id: svn://10.0.0.236/trunk@35877 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-18 21:32:18 +00:00
norris%netscape.com
e738881207
A bunch of changes, some experimental.
...
Support for jsGet_ and jsSet_ prefixes to methods for explicit getter
and setter definition.
Addition of "importClass" and "importPackage" top-level functions.
The beginnings of a history object accessible from the shell.
git-svn-id: svn://10.0.0.236/trunk@35866 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-18 17:37:20 +00:00
cbegle%netscape.com
a910491319
Add regression test for http://bugzilla.mozilla.org/show_bug.cgi?id=7635 .
...
Rename files for consistency.
These files are not part of the client.
git-svn-id: svn://10.0.0.236/trunk@35753 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 00:20:04 +00:00
cbegle%netscape.com
e5616ebbdb
Add regression test for http://bugzilla.mozilla.org/show_bug.cgi?id=4088 ,
...
Date.parse.
Not built in the client.
git-svn-id: svn://10.0.0.236/trunk@35725 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 19:25:05 +00:00
jband%netscape.com
d862ba14f3
updaing TODO list
...
git-svn-id: svn://10.0.0.236/trunk@35602 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:30:13 +00:00
jband%netscape.com
e5880c8aa6
fix for bug 8248. Not setting the VAL_IS_IFACE flag for purely out params when calling native from JS. All interfaces that return an interface (e.g. QueryInterface) were getting left with one extra ref. Yuck!
...
git-svn-id: svn://10.0.0.236/trunk@35601 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:29:49 +00:00
dp%netscape.com
767d4f61b3
Using default autoregistration
...
git-svn-id: svn://10.0.0.236/trunk@35575 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:34:08 +00:00
rogerl%netscape.com
d7d1246bf2
Fixed bug #7635 . instanceof now starts the chain walk from the object
...
prototype.
git-svn-id: svn://10.0.0.236/trunk@35543 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:44:30 +00:00
cbegle%netscape.com
9f05c83fb9
Fix errors in liveconnect tests per furman@netscape.com. Renaming files
...
to not have a "-n" filename, since they are no longer negative tests.
git-svn-id: svn://10.0.0.236/trunk@35457 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 20:03:30 +00:00
jband%netscape.com
cc65384092
removing an assert that is no longer appropriate
...
git-svn-id: svn://10.0.0.236/trunk@35354 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:46:18 +00:00
jband%netscape.com
0fd8424124
fix for bug 7940. Notification in xpconnect of JSContext about to be destroyed was zeroing out information later used to remove gc root. This was keeping JS_RemoveRoot from being called for those objects. So, the JSRuntime was getting left with pointers to roots for stuff on JSContexts long since destroyed and for which memory had been recycled. The fix is to be *sure* to do all the proper cleanup in xpconnect upon notification that a JSContext is about to be destroyed.
...
git-svn-id: svn://10.0.0.236/trunk@35323 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 02:48:26 +00:00
rogerl%netscape.com
b5540991c3
Changes to get traditional functions with args. working
...
git-svn-id: svn://10.0.0.236/trunk@35302 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:57:05 +00:00
cbegle%netscape.com
f8e8a60864
Fix error in test. Arrays should be sorted by the string value of their
...
members, even if they're numbers.
git-svn-id: svn://10.0.0.236/trunk@35280 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:39:14 +00:00
frankm%eng.sun.com
293ea440fe
Add "fast" make target, to compile only changed files.
...
git-svn-id: svn://10.0.0.236/trunk@35196 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:51:52 +00:00
jband%netscape.com
dc57448f3a
fix DOM native -> JSObject convert to not leak on failure and to fail fully rather than spuriously fall back and create an xpconnect wrapper
...
git-svn-id: svn://10.0.0.236/trunk@35186 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:23:46 +00:00
cbegle%netscape.com
2d17ff5ace
Fix test case -- remove commas from the expected result.
...
git-svn-id: svn://10.0.0.236/trunk@35179 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:06:54 +00:00
jband%netscape.com
e16e9c75be
adding strlen replacement that brendan suggested to allow for passing (oneway) JSStrings with embedded NULLs. Also added comment to Makefile.in for Unixish x86
...
git-svn-id: svn://10.0.0.236/trunk@35168 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:35:26 +00:00
jband%netscape.com
ece5c35801
changing JS_AddRoot calls to JS_AddNamedRoot calls to satisfy request in bug 8070
...
git-svn-id: svn://10.0.0.236/trunk@35089 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 19:19:44 +00:00
frankm%eng.sun.com
5496bbae3d
Revamp NativeJavaObject.coerceType and associated methods to make code
...
more maintainable, and to pass lc3/JSObject/ToChar-001.js.
git-svn-id: svn://10.0.0.236/trunk@34960 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:41:20 +00:00
rogerl%netscape.com
e7d38e04ed
Mucking about with stuff.
...
git-svn-id: svn://10.0.0.236/trunk@34891 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:05:16 +00:00
jband%netscape.com
faa5d08633
fix for bug 8017. We were allowing JS null and void to get converted into C++ NULL for pointer types even when the target was declared as a C++ reference. This was bad. Now we check for this and fail with a nice explanatory message in the JS exception.
...
git-svn-id: svn://10.0.0.236/trunk@34864 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:59:56 +00:00
jband%netscape.com
15a24b995e
fix for bug 7698. Have the prop state object call the right object when doing the JSENUMERATE_DESTROY and make sure that the object does not get gc'd first
...
git-svn-id: svn://10.0.0.236/trunk@34829 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:19:22 +00:00
jband%netscape.com
637446e2bc
1) adding the fix for 7926 from brendan and sfraser (with cleanup from me).
...
2) added where I was not checking for JSVAL_NULL from brendan.
3) got rid of 'xpcom32' references.
4) added nsIEcho::ReturnInterface as a loopback for testing the above.
5) removed some redundant retval setting code.
git-svn-id: svn://10.0.0.236/trunk@34734 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 02:04:42 +00:00
frankm%eng.sun.com
5f4bba2ae5
Fixes for LC3 regression tests, including:
...
- check static members of instances in JavaMembers.put
- do not unwrap Wrappers before calling NativeJavaMethod.findFunction
or NativeJavaObject.coerceType; both methods may need extra information
provided by the wrapper.
- separate Java signatures for resolving overloaded methods and script
signatures for error messages, so we can distinguish primitive types
from classes.
- separate Java signatures for resolving overloaded methods and script
signatures for error messages, so we can distinguish primitive types
from classes.
- prevent a NativeJavaClass from being treated as a wrapped instance of
java.lang.Class
- correct bug which preferred the *less* specific of two classes in
NativeJavaMethod.preferSignature
- add new LC3 conversion rules to NativeJavaObject.coerceTypes.
- coerce JS numbers to Java numbers or chars only if the JS number is in
range.
git-svn-id: svn://10.0.0.236/trunk@34731 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 01:24:40 +00:00
rogerl%netscape.com
17cd7246b8
Function calling begun.
...
git-svn-id: svn://10.0.0.236/trunk@34703 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:21:26 +00:00
rogerl%netscape.com
900de8bfd5
Added base to ScriptRuntime.numberToString, NativeNumber.toString()
...
Bug #7625
git-svn-id: svn://10.0.0.236/trunk@34534 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:54:28 +00:00
rogerl%netscape.com
44ea3bf179
New
...
git-svn-id: svn://10.0.0.236/trunk@34357 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 03:10:30 +00:00
rogerl%netscape.com
06986144aa
tried adding some lexical scoping to the leftmost identifier
...
git-svn-id: svn://10.0.0.236/trunk@34356 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 03:10:09 +00:00
jband%netscape.com
fcf49b32de
removing unused file
...
git-svn-id: svn://10.0.0.236/trunk@34253 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:05:19 +00:00
norris%netscape.com
83c191892d
Small reduction in code size.
...
git-svn-id: svn://10.0.0.236/trunk@34248 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:57:19 +00:00
cbegle%netscape.com
bfd3a64713
Fix constructor test to match the constructors in DataTypeClass.java
...
git-svn-id: svn://10.0.0.236/trunk@34210 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:07:15 +00:00
cbegle%netscape.com
a076943e46
Add constructor tests.
...
git-svn-id: svn://10.0.0.236/trunk@34209 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:06:28 +00:00
cbegle%netscape.com
1654607cbd
Object getters should return the same object set in the object setters,
...
and not create a new object.
git-svn-id: svn://10.0.0.236/trunk@34200 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 16:27:43 +00:00
brendan%netscape.com
2802b8d1f6
- "varargs" counterpart to JS_ConvertArguments, JS_ConvertArgumentsVA.
...
- JS_PushArguments{,VA} and JS_PopArguments to convert a list of C/C++ values
passed as actual arguments into an 'jsval *argv' on the JS stack.
- Clean up and robustify ConvertArgs test command in the js shell.
git-svn-id: svn://10.0.0.236/trunk@34159 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 02:15:57 +00:00
waldemar%netscape.com
348f792fe4
Fixed several semantic errors. Added (?= and (?!.
...
git-svn-id: svn://10.0.0.236/trunk@34147 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:45:49 +00:00
waldemar%netscape.com
3fd19af552
Added statement showing number of grammar states
...
git-svn-id: svn://10.0.0.236/trunk@34146 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:44:52 +00:00
briano%netscape.com
0f0c501180
SunOS 4.x doesn't have libsocket either.
...
git-svn-id: svn://10.0.0.236/trunk@34132 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:15:02 +00:00
rogerl%netscape.com
ccf097f432
Fixed bug #7703 , typeof<var> wasn't referencing activation frame vars
...
correctly.
git-svn-id: svn://10.0.0.236/trunk@34108 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:29:41 +00:00
waldemar%netscape.com
57a8f8ffc6
Simplified grammar by using lookahead constraints. Fixed \dd bugs. Made all errors occur at pattern compile time.
...
git-svn-id: svn://10.0.0.236/trunk@34096 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:00:09 +00:00
waldemar%netscape.com
bed46b51e0
Simplified grammar by using lookahead constraints.
...
git-svn-id: svn://10.0.0.236/trunk@34095 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:58:24 +00:00
waldemar%netscape.com
e5731ff736
Simplified grammar by using lookahead constraints. Removed requirement for an underscore before unit name.
...
git-svn-id: svn://10.0.0.236/trunk@34094 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:57:29 +00:00
norris%netscape.com
fff5b7216c
Clean up formatting.
...
git-svn-id: svn://10.0.0.236/trunk@33996 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:14:15 +00:00
norris%netscape.com
0f1b29664f
Optimization: avoid allocating a Vector object for every LiveConnect call.
...
git-svn-id: svn://10.0.0.236/trunk@33995 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:13:15 +00:00
jband%netscape.com
34ce93323c
allow for mapping both directions between NULL and JSVAL_NULL for all pointer type objects (string, wstring, nsid, as well as interface pointers
...
git-svn-id: svn://10.0.0.236/trunk@33973 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 05:09:38 +00:00
mccabe%netscape.com
7db0124e7d
Change the emacs /* Mode: */ comment for many .cpp files from C to C++. A .js file snuck in there too, but I like seeing my .js in c++-mode anyway...
...
git-svn-id: svn://10.0.0.236/trunk@33951 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 04:25:58 +00:00
mccabe%netscape.com
10951415b5
Patches courtesy Jeremy Lea <reg@shale.csir.co.za>
...
To wit:
Attached are a couple of small fixes for building in the js/ subdir.
These are for FreeBSD-CURRENT, and for building in a seperate OBJDIR.
The FreeBSD one is a quick and dirty. The real fix is pobably just to
use OS_LDFLAGS as defined by configure...
git-svn-id: svn://10.0.0.236/trunk@33950 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 04:10:33 +00:00
beard%netscape.com
56211264dc
added NativeJavaConstructor.java
...
git-svn-id: svn://10.0.0.236/trunk@33913 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 08:20:54 +00:00
frankm%eng.sun.com
d82f107a0a
Replace *.class with ScriptRuntime.*Class; added ScriptRuntime.ClassClass
...
git-svn-id: svn://10.0.0.236/trunk@33897 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:48:24 +00:00