1849 Commits

Author SHA1 Message Date
jband%netscape.com
f864a0ff3d My contribution to bug 5403. Get rid of xpconnect's ServiceReleaser scheme because we can now just call Release on a service just like any other xpcom object. r=mccabe
git-svn-id: svn://10.0.0.236/trunk@54830 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 00:27:09 +00:00
norris%netscape.com
eb56ef0b80 anal: fix indentation
git-svn-id: svn://10.0.0.236/trunk@54817 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 23:54:51 +00:00
rginda%netscape.com
56df13b9c5 Added liveconnect option to runtests2.pl, there are now so many shells supported that the -e|--engine=<type> option has replaces all the individual engine options, such as -d, -o, and -r.
Updated bugnumber in the function-001(-n)?.js files, and minor simplification in the 10.1.3 testcase.


git-svn-id: svn://10.0.0.236/trunk@54778 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 22:16:34 +00:00
rginda%netscape.com
e9cb2134b8 Defined __LITTLE_ENDIAN in fdlibm on x86 linux, fixes various Math object issues, r=rogerl@netscape.com
git-svn-id: svn://10.0.0.236/trunk@54651 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 00:43:03 +00:00
mccabe%netscape.com
fed797cf9d Additional Date object APIS courtesy 'Chris' Houck. r=mccabe.
git-svn-id: svn://10.0.0.236/trunk@54650 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 00:42:07 +00:00
rginda%netscape.com
edb94a5acb Changes to make list selection page work correctly on windows platform.
git-svn-id: svn://10.0.0.236/trunk@54615 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-29 22:31:45 +00:00
rogerl%netscape.com
7711fb73be r=norris
Moved 'ok' to MatchState. Re-wrote matchGreedyKid to reduce stack
usage and allow succesful completion to propagate out. #9141


git-svn-id: svn://10.0.0.236/trunk@54605 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-29 22:06:22 +00:00
bryner%uiuc.edu
441b7717d1 Minor changes to fix building on Linux with --enable-oji. r=shaver.
git-svn-id: svn://10.0.0.236/trunk@54571 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-29 20:27:00 +00:00
brendan%mozilla.org
aac42b0e3f Destroy rt->stateChange condvar (also trim deadwood; 20168, r=beard@netscape.com).
git-svn-id: svn://10.0.0.236/trunk@54540 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-28 19:56:52 +00:00
brendan%mozilla.org
49a807da2d Fix decompiler to search function clone prototypes for args and vars (20160, r=rginda@netscape.com).
git-svn-id: svn://10.0.0.236/trunk@54531 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-28 09:46:33 +00:00
warren%netscape.com
eb9a891946 Eliminated the libs build pass.
git-svn-id: svn://10.0.0.236/trunk@54523 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-28 03:05:01 +00:00
brendan%mozilla.org
ca2032e66d Eliminate Closure per ECMA ed. 3, fix brutal sharing of lambdas (20076, r=rogerl,shaver).
git-svn-id: svn://10.0.0.236/trunk@54474 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-25 03:25:30 +00:00
shaver%netscape.com
3676f93091 - report function name, if any, when warning about mismatched return
- change catchguard syntax to avoid ECMA conflict
- light XDR cleanup


git-svn-id: svn://10.0.0.236/trunk@54364 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 03:36:25 +00:00
rginda%netscape.com
f486d713bc * Makefile
Add target for windows systems.
* runtests2.pl
  Add xpcshell option, no longer requires \n at end of list file.
* ecma/ExecutionContexts/10.1.3.js
  Reformatted.


git-svn-id: svn://10.0.0.236/trunk@54331 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 22:35:35 +00:00
norris%netscape.com
b275a73219 delete of non-reference just evaluates to true.
git-svn-id: svn://10.0.0.236/trunk@54290 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 17:36:17 +00:00
norris%netscape.com
34673b8f9e Add ConversionError and make it work for undefined.foo.
git-svn-id: svn://10.0.0.236/trunk@54288 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 17:30:31 +00:00
norris%netscape.com
13ceb50706 Remove commented-out code.
git-svn-id: svn://10.0.0.236/trunk@54287 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 17:29:53 +00:00
norris%netscape.com
412d0add5a Fix formatting.
git-svn-id: svn://10.0.0.236/trunk@54286 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 17:29:34 +00:00
jband%netscape.com
170ebb1f69 fixup the exported api declarations to use JS_PUBLIC_API in a consistent fashion r=mccabe
git-svn-id: svn://10.0.0.236/trunk@54224 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 01:02:28 +00:00
norris%netscape.com
4e4fe42d78 Fix test failures:
ecma_2/Exceptions/expression-020.js
js1_4/Regress/date-001-n.js
js1_4/Regress/toString-001-n.js


git-svn-id: svn://10.0.0.236/trunk@54214 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-22 23:48:06 +00:00
rginda%netscape.com
61f33305f8 Return exitcode 3 on runtime errors, and 4 on 'file not found's; added to js and xpc shell,
r=jband


git-svn-id: svn://10.0.0.236/trunk@54208 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-22 23:28:58 +00:00
norris%netscape.com
f6b5e55922 Fix
Testcase ecma_2/Exceptions/expression-020.js failed
Failure messages were:
result = this.eval("NaN") (threw No exception thrown) = NaN FAILED! expected: Passed


git-svn-id: svn://10.0.0.236/trunk@54157 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-22 19:35:59 +00:00
norris%netscape.com
c792dc00f2 'thisArg' could be null, so use 'fun' for scope.
git-svn-id: svn://10.0.0.236/trunk@54156 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-22 19:35:20 +00:00
cls%seawood.org
3826889094 When cross-compiling, we want to use the header generated from NSPR defines.
git-svn-id: svn://10.0.0.236/trunk@54113 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-21 16:06:53 +00:00
duncan%be.com
3346a5d069 Make locale work under BeOS (added XP_BEOS next to XP_UNIX). r=nhotta
Make JS timing work under BeOS (added XP_BEOS next to XP_UNIX). r=mcafee
Make nsSigHandlers.cpp build under BeOS (strsignal returns const char *). r=mcafee


git-svn-id: svn://10.0.0.236/trunk@54066 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 10:53:34 +00:00
rginda%netscape.com
22c7977472 tweaked html output, added test duration time.
git-svn-id: svn://10.0.0.236/trunk@54058 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 07:50:43 +00:00
rginda%netscape.com
e5529bf0b8 Added javapath, and confail options. Made some trace output come out by default so it isn't so eerily quiet in quiet mode.
git-svn-id: svn://10.0.0.236/trunk@54038 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 05:22:20 +00:00
waldemar%netscape.com
9edbe5b45d Fixed MCL incompatibility
git-svn-id: svn://10.0.0.236/trunk@54037 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 04:34:42 +00:00
jband%netscape.com
f9c524f923 r=fur Conform to the recently changed semantics of nsHashtableEnumerator::IsDone to fix the infinite loop that started happening in the Components.[interfaces,classes,classesByID] enumerators
git-svn-id: svn://10.0.0.236/trunk@54035 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 04:21:58 +00:00
waldemar%netscape.com
aefedb080a Added Allegro reference
git-svn-id: svn://10.0.0.236/trunk@54027 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 02:18:26 +00:00
waldemar%netscape.com
0685de255a Updated to work under Allegro Common Lisp
git-svn-id: svn://10.0.0.236/trunk@54026 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 02:16:56 +00:00
rginda%netscape.com
9dda965075 s/FAILED!/{return a failure}/ in testcase description to keep from fooling the test driver.
git-svn-id: svn://10.0.0.236/trunk@54025 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 01:43:44 +00:00
rginda%netscape.com
ea6fe4f1f9 Correct exit codes on win32, echo output file regardles of -t
git-svn-id: svn://10.0.0.236/trunk@54023 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 00:28:06 +00:00
norris%netscape.com
e3823e3854 Fix ecma_2/Expressions/instanceof-003-n.js
ScriptRuntime::instanceOf now needs a scope parameter that it can use to construct an exception object


git-svn-id: svn://10.0.0.236/trunk@54022 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 00:19:00 +00:00
norris%netscape.com
ba5ee4bd59 argument.caller shouldn't be defined in the default version
git-svn-id: svn://10.0.0.236/trunk@54021 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 23:02:52 +00:00
rginda%netscape.com
46250d0a36 Add bugnumber to reports, bugzilla url option, and expect exit code 3 for negative tests.
git-svn-id: svn://10.0.0.236/trunk@54018 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 21:54:46 +00:00
rginda%netscape.com
4cacaf8f66 s/perl5/perl/
git-svn-id: svn://10.0.0.236/trunk@53944 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 01:18:33 +00:00
rginda%netscape.com
09b51fab5d Added most.tests, most of the tests, minus liveconnect and some date/array tests that take a long time.
git-svn-id: svn://10.0.0.236/trunk@53931 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 00:57:18 +00:00
rginda%netscape.com
f4b791db8c HTML output is in, script generally useful. Not tested on win32 or mac yet.
git-svn-id: svn://10.0.0.236/trunk@53929 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 00:56:17 +00:00
brendan%mozilla.org
1c2d96a428 - Add JS_HAS_FUN_EXPR_STMT jsconfig.h macro and use it to ifdef a special case explicitly specified by ECMA ed. 3 to be an error: a function expression that's a statement (not at top-level). This allows one to wrap functions in if and else statements and conditionally define them.
(More work is needed to conform to ECMA ed. 3 by removing Closure objects; also we want more efficient closure calling, soon.)

- Move mislocated call to js_FoldConstants from jsemit.c's js_EmitTree, the TOK_FUNCTION case, back to jsparse.c.  This avoids redundant fold-walks over non-top-level functions.  Folding should be done at tree-gen time, not at code-gen time.

- Eliminate dead code in if-else and ?: when folding constants.

- Release tempPool arena space before early return on error in js_FoldConstants, just to be nice (all arena space gets released eventually, when the compiler finishes).


git-svn-id: svn://10.0.0.236/trunk@53898 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 20:19:56 +00:00
shaver%netscape.com
1ec9b3aa0d Fix some MLK and FMR badness.
Use nsCOMPtr to manage services (thank you dp, thank you).
Only push context on stack when actually executing JS via JSAPI.
Use nsXPIDLCString to simplify memory management (thank you waterson,
thank you).
Use generic module stuff.
r=fur,jband


git-svn-id: svn://10.0.0.236/trunk@53884 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 15:39:28 +00:00
jband%netscape.com
704976db95 remove invalid assertion
git-svn-id: svn://10.0.0.236/trunk@53823 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 04:30:54 +00:00
rginda%netscape.com
8bd4b3f833 Added ^c handler, beginnings of html output.
git-svn-id: svn://10.0.0.236/trunk@53822 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 04:14:00 +00:00
rginda%netscape.com
4c59ec23d1 * menuhead.html
make all targets "other_window" to reduce number of open windows.
* mklistpage.pl
  make all targets "other_window" to reduce number of open windows.
* runtests2.pl
  more hacking, still not done.


git-svn-id: svn://10.0.0.236/trunk@53788 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 22:33:05 +00:00
rginda%netscape.com
ee50e06936 Initial checkin of "import test list" dialog.
git-svn-id: svn://10.0.0.236/trunk@53787 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 22:31:07 +00:00
rginda%netscape.com
521eb32640 * Global.java
Cleared global.exitCode in quit() just to be safe.
* Main.java
  Adjusted exit code constants to match the js and xpcshells.


git-svn-id: svn://10.0.0.236/trunk@53778 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 20:26:17 +00:00
rogerl%netscape.com
fd8c6885d9 Changes for JS1.5 build under AIX4.3.
(Not a part of SeaMonkey builds)


git-svn-id: svn://10.0.0.236/trunk@53773 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 18:34:04 +00:00
brendan%mozilla.org
693b8201bd Unregress top-level lambda expressions not in with statements to avoid full closure overhead.
git-svn-id: svn://10.0.0.236/trunk@53760 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 07:41:12 +00:00
brendan%mozilla.org
66fd5fc23b Whitespace, comment, and bracing diffs.
git-svn-id: svn://10.0.0.236/trunk@53749 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 04:32:37 +00:00
brendan%mozilla.org
1f55285563 Brutal sharing followup (15146, r=shaver@mozilla.org)
- jsinterp.c changes: 
__- JSOP_CLOSURE comment fixes.
____(NB: ECMA ed 3 seems to require that we abolish the Closure object altogether, replacing it with a new Function object where we used to make a new closure.  That says we should use JS_CloneFunctionObject or an internal form (js_).) 
__- Use obj rather than the same-valued fp->scopeChain as fourth argument to js_ConstructObject. 
__- JSOP_DEFFUN change to auto-clone when running a script in a different scope from the one the compiler used for static function scope linkage. 
__- Remove bogus assertion from JSOP_DEFVAR/CONST: case.

- jsparse.c/.h changes:
__- Restored outerFun test to FunctionDef in jsparse.c, so that we make a closure if (outerFun || lambda || !funAtom) -- i.e., if we're compiling
____- A function statement within an active function via eval;
____- We're compiling a function expression statement (not at apparent-to-compiler top-level; part of some kind of compound statement, e.g. if or with);
____- Or the function, even at top statement level and not in another function, has no name. 
__- Don't predefine local variables at compile time if they're in with statement
__- Enforce const at compile time for local consts

- Minor jsemit.[ch] cleanup.


git-svn-id: svn://10.0.0.236/trunk@53746 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 04:13:05 +00:00