Commit Graph

23928 Commits

Author SHA1 Message Date
cbegle@netscape.com
cf94802714 Fix error in test. Arrays should be sorted by the string value of their
members, even if they're numbers.
1999-06-14 23:39:14 +00:00
jband@netscape.com
9045acf54b fix DOM native -> JSObject convert to not leak on failure and to fail fully rather than spuriously fall back and create an xpconnect wrapper 1999-06-14 21:23:46 +00:00
cbegle@netscape.com
22234d5e0a Fix test case -- remove commas from the expected result. 1999-06-14 21:06:54 +00:00
jband@netscape.com
6af9eecb5e adding strlen replacement that brendan suggested to allow for passing (oneway) JSStrings with embedded NULLs. Also added comment to Makefile.in for Unixish x86 1999-06-14 20:35:26 +00:00
jband@netscape.com
7145ff218a changing JS_AddRoot calls to JS_AddNamedRoot calls to satisfy request in bug 8070 1999-06-13 19:19:44 +00:00
rogerl@netscape.com
4766e4aa58 Mucking about with stuff. 1999-06-11 23:05:16 +00:00
jband@netscape.com
27a0b5683b 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. 1999-06-11 21:59:56 +00:00
jband@netscape.com
1cc15f601d 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 1999-06-11 19:16:46 +00:00
jband@netscape.com
d0551e6cb7 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.
1999-06-11 02:04:42 +00:00
rogerl@netscape.com
e802d8750e Function calling begun. 1999-06-11 00:21:26 +00:00
rogerl@netscape.com
76ca94a24a New 1999-06-09 03:10:30 +00:00
rogerl@netscape.com
da03c85502 tried adding some lexical scoping to the leftmost identifier 1999-06-09 03:10:09 +00:00
jband@netscape.com
93f52f76c1 removing unused file 1999-06-08 21:03:35 +00:00
cbegle@netscape.com
1be55f9477 Fix constructor test to match the constructors in DataTypeClass.java 1999-06-08 18:07:15 +00:00
cbegle@netscape.com
222b2b08d3 Add constructor tests. 1999-06-08 18:06:28 +00:00
cbegle@netscape.com
0d050c1c15 Object getters should return the same object set in the object setters,
and not create a new object.
1999-06-08 16:27:43 +00:00
brendan@netscape.com
b08ba9f342 - "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.
1999-06-08 02:15:57 +00:00
waldemar@netscape.com
91da5f767d Fixed several semantic errors. Added (?= and (?!. 1999-06-08 00:45:49 +00:00
waldemar@netscape.com
334914c52f Added statement showing number of grammar states 1999-06-08 00:44:52 +00:00
briano@netscape.com
3d39f8beb7 SunOS 4.x doesn't have libsocket either. 1999-06-08 00:15:02 +00:00
waldemar@netscape.com
dc2811dfae Simplified grammar by using lookahead constraints. Fixed \dd bugs. Made all errors occur at pattern compile time. 1999-06-07 22:00:09 +00:00
waldemar@netscape.com
f5b63a0670 Simplified grammar by using lookahead constraints. 1999-06-07 21:58:24 +00:00
waldemar@netscape.com
a500f1b852 Simplified grammar by using lookahead constraints. Removed requirement for an underscore before unit name. 1999-06-07 21:57:29 +00:00
jband@netscape.com
ed12edd74e allow for mapping both directions between NULL and JSVAL_NULL for all pointer type objects (string, wstring, nsid, as well as interface pointers 1999-06-07 05:09:38 +00:00
mccabe@netscape.com
25fcd7b54f 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... 1999-06-06 04:25:58 +00:00
mccabe@netscape.com
0a3338abb1 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...
1999-06-06 04:10:33 +00:00
briano@netscape.com
f53712969e Fix for SunOS 4.x. 1999-06-05 01:46:10 +00:00
jdunn@netscape.com
3a83d6e6e8 need to handle building in a separate directory from where the source is... 1999-06-04 23:40:02 +00:00
briano@netscape.com
b2f8895eaf Handle the (Unix) platform-specific DLL naming conventions properly. 1999-06-04 22:17:30 +00:00
jdunn@netscape.com
b8a93f1e35 This file can't be optimized on AIX and so just like the NSPR file (prdtoa.c)
we turn off optimizing while compiling.
1999-06-04 21:50:09 +00:00
ducarroz@netscape.com
bc2026d3cf add nsIXPCSecurityManager to fix build bustage 1999-06-04 06:39:33 +00:00
jband@netscape.com
52a8288c2e added nsIXPCSecurityManager interface and support to xpconnect - with tests. 1999-06-04 05:46:48 +00:00
rogerl@netscape.com
a743ebbfe5 Blew off 'caller' property - it was deemed a security risk, bug #7224 1999-06-03 23:24:39 +00:00
jband@netscape.com
47cc153d4f use the newly-FRIEND-ized js_AllocStack, js_FreeStack, and js_Invoke functions instead of JS_CallFunctionName to assure that the gcthing converted args we accumulate before making the call are properly rooted. This is a lot more efficient than the alternative of explicitly rooting them with JS_AddRoot. Up to this point these gcthings (doubles and strings) were dangling. Thanks to brendan for this suggstion. 1999-06-03 21:44:37 +00:00
jband@netscape.com
4b72fd8ff3 make js_AllocStack, js_FreeStack, and js_Invoke, FRIEND functions so that they can be used by our good friend xpconnect. 1999-06-03 21:39:08 +00:00
waldemar@netscape.com
987c9d4be0 First Checked In. 1999-06-03 20:53:14 +00:00
waldemar@netscape.com
caf8b16d95 Added support for lookahead constraints 1999-06-03 20:52:04 +00:00
waldemar@netscape.com
c72e30410f Added general-grammar-symbol? predicate 1999-06-03 20:50:21 +00:00
waldemar@netscape.com
79ea9f5be3 Moved pieces of file around 1999-06-03 20:49:13 +00:00
waterson@netscape.com
93dd06b005 Single public include directory on Win32. 1999-06-03 18:34:27 +00:00
jband@netscape.com
18ebbb1611 removing disinformation from README 1999-06-02 03:19:55 +00:00
jband@netscape.com
057753d554 adding netbsd m68k support contributed by khym@bga.com (Dave Huang) 1999-06-02 02:26:38 +00:00
rogerl@netscape.com
e5cd3f462c Bug #7197 (related) - capture and free char pointers going to error
reporter.
Bug #5875 - eval of named function within a function resulted in the
function not being visible at the start of the eval string.
1999-06-01 23:17:19 +00:00
rogerl@netscape.com
b208261e0a Bug #7197 - free other error report message junk 1999-06-01 23:07:59 +00:00
rogerl@netscape.com
0f38cc5d03 Fixed non-terminating regexp when max quantifier is unspecified as in :
var s = 'zzabc.';
var reg = /[^z]{1,}\./;
s.match(reg);
- wasn't checking for reaching end of text.
1999-06-01 22:43:17 +00:00
jband@netscape.com
cb82fe6375 added test 1999-06-01 02:43:02 +00:00
jband@netscape.com
82822c2b47 1) Removed old and duplicate .idl, .h, and .xpt files.
2) Support passing an interface identifier to getService and NewInstance.
3) Added AbandonJSContext to allow for cleanup of per JSContext data.
4) Added interface inheritence tests.
1999-06-01 02:39:44 +00:00
jband@netscape.com
80ae2d564c updating readme 1999-06-01 02:31:13 +00:00
rogerl@netscape.com
efff9d153f Moved from stack to inline execution. 1999-05-28 19:00:48 +00:00
cbegle@netscape.com
dbbe0b301e adding more javascript language tests 1999-05-26 22:24:04 +00:00