Граф коммитов

1555 Коммитов

Автор SHA1 Сообщение Дата
norris%netscape.com 77400866c1 clean up tests 1999-12-03 23:54:36 +00:00
norris%netscape.com 3c8d260145 eval() called indirectly should throw an EvalError 1999-12-03 23:44:58 +00:00
norris%netscape.com aeab7546b9 Fix ecma_2/Exceptions/exception-006.js 1999-12-03 23:32:46 +00:00
norris%netscape.com a63bc514b9 Remove spurious quote 1999-12-03 23:17:43 +00:00
norris%netscape.com 4d33f84af9 VAR --> var 1999-12-03 23:16:23 +00:00
waldemar%netscape.com f7b49b1b05 Implemented line-grammar and added utility functions for analyzing grammar state table 1999-12-03 22:53:21 +00:00
waldemar%netscape.com ffe7afd37a Implemented variant-constraints 1999-12-03 22:52:18 +00:00
waldemar%netscape.com 436bc8e750 Implemented line-grammar 1999-12-03 22:51:27 +00:00
waldemar%netscape.com 15793d4cc3 Implemented variant-constraints. Added all-state-transitions. 1999-12-03 22:50:45 +00:00
waldemar%netscape.com 5357f74106 Changed comments 1999-12-03 22:49:36 +00:00
waldemar%netscape.com f4d100a1e2 First Checked In. 1999-12-03 22:49:10 +00:00
waldemar%netscape.com 37d714ab95 Added :sort-key to sorted-hash-table-keys 1999-12-03 22:48:52 +00:00
norris%netscape.com 6213e7ae3f Fix regressions. 1999-12-03 21:50:42 +00:00
rogerl%netscape.com 0f9eca4866 Switch to ECMA error. 1999-12-03 02:58:29 +00:00
rogerl%netscape.com 4c286f0250 Don't let Undefined prototype be assigned to new objects, revert to Object
instead. Also, detect Undefined prototype in hasInstance and bail.
1999-12-03 00:10:36 +00:00
norris%netscape.com 51068bf196 Fix the following bug:
Subject:
            Rhino request URGENT
       Date:
            Thu, 02 Dec 1999 15:58:40 -0500
      From:
            slobo@espialgroup.com
        To:
            Norris Boyd <norris@netscape.com>
 References:
            1 , 2




Hello Norris

In Rhino, the following script gives the error : "function does not always return a value" during the parsing phase. The script
runs perfectly fine in Netscape 4.61. It is an urgent requirement. Many thanks in advance.

Steven

///////////////////////////////////////////////////////SCRIPT  BEGIN  ///////////////////////////////////////////////
function test (a) {
  this.arg = a;
  if (a>20)
        return;
  return this;
}

//print = alert;

function joe() {
a = new test (20);
print (a.arg);


a = new test (25);
print (a.arg);
}

joe();
///////////////////////////////////////////////////////SCRIPT   END  ///////////////////////////////////////////////
1999-12-03 00:04:46 +00:00
fur%netscape.com 42f42f7011 Fix 20594: C++ comments in C files 1999-12-02 22:41:02 +00:00
norris%netscape.com 26afc24746 remove invalid test 1999-12-02 20:04:48 +00:00
norris%netscape.com 136d21ac6f EvaluatorExceptions should set an exit error code. 1999-12-02 19:12:34 +00:00
norris%netscape.com 54912ce1a7 Pass a scope to ScriptRuntime.call so we can throw EcmaErrors if need be. 1999-12-02 18:17:22 +00:00
waldemar%netscape.com 445f739dc0 NOT IN BUILD. Added strdup to make Mac standalone js engine work again 1999-12-02 03:05:14 +00:00
waldemar%netscape.com 6fd8a95ec7 Fix to bug 17263: toPrecision when called with no arguments. r=shaver 1999-12-02 03:04:31 +00:00
rogerl%netscape.com 68e586ec9e Added missing null scope parameter. 1999-12-02 01:33:22 +00:00
rogerl%netscape.com 2f671616d5 Passing scope down into parser/IRFactory/NodeTransformer so that syntax
errors can be packaged as ECMA Error objects.
1999-12-02 01:16:02 +00:00
rogerl%netscape.com e01b13c759 Bug #19980 - insist on curly-brace after catch block rather than just
accepting it - forces error that allows catch block to span lines for
interactive input.
1999-12-01 23:12:58 +00:00
norris%netscape.com 35ed67ffec Fix js1_3/regress/in-001.js 1999-12-01 18:43:12 +00:00
norris%netscape.com ec2aef2474 Fix test ecma_2/Exceptions/string-001.js 1999-12-01 18:05:49 +00:00
rginda%netscape.com c5125cbc23 Testcase produced no output is no longer a failure. 1999-12-01 06:29:27 +00:00
rginda%netscape.com 72a01ffe23 Added new ecma_3 suite. along with 'new style' (hopefully simpler) shell.js, and
a new test (which fails already!)
1999-12-01 06:07:28 +00:00
waterson%netscape.com 75eb57a1df xpconnect is a component now on Linux/PPC, albeit a broken one... 1999-12-01 05:20:16 +00:00
brendan%mozilla.org 2a963196c5 Fix obscure eval bug and ECMA conformance issue (20256, r=rginda@netscape.com). 1999-12-01 04:30:04 +00:00
rogerl%netscape.com a5c0875b49 Call createFunctionObject on closure created InterpretedFunction objects
so they can be real JS objects like they're supposed to be -with prototypes
and everything.
1999-12-01 02:45:58 +00:00
drapeau%eng.sun.com 3a3de239a0 My bad: orphaned code fix for bug 5369. The rest of this bug fix was
checked in some time ago, but this portion of the fix never made it
it.  r=drapeau@eng.sun.com.  Log error when LiveConnect cannot be
started due to an error in the Java VM.
1999-12-01 01:43:16 +00:00
drapeau%eng.sun.com 36a49c7cb3 Fix for bug 14666 ("Running this JavaToJavaScript test causes
apprunner to crash."), fix contributed by
jeff.dyer@compilercompany.com, r=drapeau@eng.sun.com. Checks whether
there's a current valid context; if there's no context, don't bother
checking if an exception is pending on that context.
1999-12-01 00:44:08 +00:00
jband%netscape.com dbc38c79c5 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 1999-12-01 00:27:09 +00:00
norris%netscape.com 5ad67e721a anal: fix indentation 1999-11-30 23:54:51 +00:00
rginda%netscape.com b6a1a75c47 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.
1999-11-30 22:16:34 +00:00
rginda%netscape.com e6ee0b96d0 Defined __LITTLE_ENDIAN in fdlibm on x86 linux, fixes various Math object issues, r=rogerl@netscape.com 1999-11-30 00:43:03 +00:00
mccabe%netscape.com ecb7806801 Additional Date object APIS courtesy 'Chris' Houck. r=mccabe. 1999-11-30 00:42:07 +00:00
rginda%netscape.com 7ed274b845 Changes to make list selection page work correctly on windows platform. 1999-11-29 22:31:45 +00:00
rogerl%netscape.com 50b2e1ebdf r=norris
Moved 'ok' to MatchState. Re-wrote matchGreedyKid to reduce stack
usage and allow succesful completion to propagate out. #9141
1999-11-29 22:06:22 +00:00
bryner%uiuc.edu 31301221b2 Minor changes to fix building on Linux with --enable-oji. r=shaver. 1999-11-29 20:27:00 +00:00
brendan%mozilla.org 6a6109e43c Destroy rt->stateChange condvar (also trim deadwood; 20168, r=beard@netscape.com). 1999-11-28 19:56:52 +00:00
brendan%mozilla.org 2048f5b74e Fix decompiler to search function clone prototypes for args and vars (20160, r=rginda@netscape.com). 1999-11-28 09:46:33 +00:00
warren%netscape.com 4ab4ee4d4e Eliminated the libs build pass. 1999-11-28 03:05:01 +00:00
brendan%mozilla.org 1212d7a599 Eliminate Closure per ECMA ed. 3, fix brutal sharing of lambdas (20076, r=rogerl,shaver). 1999-11-25 03:25:30 +00:00
shaver%netscape.com 1e29947595 - report function name, if any, when warning about mismatched return
- change catchguard syntax to avoid ECMA conflict
- light XDR cleanup
1999-11-24 03:36:25 +00:00
rginda%netscape.com ca7546867b * 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.
1999-11-23 22:35:35 +00:00
norris%netscape.com bb088da102 delete of non-reference just evaluates to true. 1999-11-23 17:36:17 +00:00
norris%netscape.com eadef0d104 Add ConversionError and make it work for undefined.foo. 1999-11-23 17:30:31 +00:00
norris%netscape.com bf8cbd877b Remove commented-out code. 1999-11-23 17:29:53 +00:00
norris%netscape.com 5a2dba3040 Fix formatting. 1999-11-23 17:29:34 +00:00
jband%netscape.com 8df6b9a809 fixup the exported api declarations to use JS_PUBLIC_API in a consistent fashion r=mccabe 1999-11-23 01:02:28 +00:00
norris%netscape.com bce104a346 Fix test failures:
ecma_2/Exceptions/expression-020.js
js1_4/Regress/date-001-n.js
js1_4/Regress/toString-001-n.js
1999-11-22 23:48:06 +00:00
rginda%netscape.com 004eef0bf8 Return exitcode 3 on runtime errors, and 4 on 'file not found's; added to js and xpc shell,
r=jband
1999-11-22 23:28:58 +00:00
norris%netscape.com f3b2f0b638 Fix
Testcase ecma_2/Exceptions/expression-020.js failed
Failure messages were:
result = this.eval("NaN") (threw No exception thrown) = NaN FAILED! expected: Passed
1999-11-22 19:35:59 +00:00
norris%netscape.com 0343b19f7f 'thisArg' could be null, so use 'fun' for scope. 1999-11-22 19:35:20 +00:00
jband%netscape.com 0173df06ba removing the .cvsignore file in an abandoned directory so that using -P with cvs will trim the thing out of a tree 1999-11-22 05:46:56 +00:00
cls%seawood.org 1a2699f584 When cross-compiling, we want to use the header generated from NSPR defines. 1999-11-21 16:06:53 +00:00
duncan%be.com 196ff89c01 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
1999-11-20 10:53:34 +00:00
rginda%netscape.com 4d390f03b5 tweaked html output, added test duration time. 1999-11-20 07:50:43 +00:00
rginda%netscape.com e50de21c72 Added javapath, and confail options. Made some trace output come out by default so it isn't so eerily quiet in quiet mode. 1999-11-20 05:22:20 +00:00
waldemar%netscape.com 61070bffbe Fixed MCL incompatibility 1999-11-20 04:34:42 +00:00
jband%netscape.com b64ec3335e 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 1999-11-20 04:21:58 +00:00
waldemar%netscape.com c9c34bf66c Added Allegro reference 1999-11-20 02:18:26 +00:00
waldemar%netscape.com 134c6fefaf Updated to work under Allegro Common Lisp 1999-11-20 02:16:56 +00:00
rginda%netscape.com db611ebed7 s/FAILED!/{return a failure}/ in testcase description to keep from fooling the test driver. 1999-11-20 01:43:44 +00:00
rginda%netscape.com 5f289038d5 Correct exit codes on win32, echo output file regardles of -t 1999-11-20 00:28:06 +00:00
norris%netscape.com ca76b17037 Fix ecma_2/Expressions/instanceof-003-n.js
ScriptRuntime::instanceOf now needs a scope parameter that it can use to construct an exception object
1999-11-20 00:19:00 +00:00
norris%netscape.com eb298c15ba argument.caller shouldn't be defined in the default version 1999-11-19 23:02:52 +00:00
rginda%netscape.com 6e23182854 Add bugnumber to reports, bugzilla url option, and expect exit code 3 for negative tests. 1999-11-19 21:54:46 +00:00
rginda%netscape.com 510c390d39 s/perl5/perl/ 1999-11-19 01:18:33 +00:00
rginda%netscape.com b5d7c51679 Added most.tests, most of the tests, minus liveconnect and some date/array tests that take a long time. 1999-11-19 00:57:18 +00:00
rginda%netscape.com 38e5dfe58a HTML output is in, script generally useful. Not tested on win32 or mac yet. 1999-11-19 00:56:17 +00:00
brendan%mozilla.org 0d66307ac4 - 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).
1999-11-18 20:19:56 +00:00
shaver%netscape.com 54fb7cb54b 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
1999-11-18 15:39:28 +00:00
jband%netscape.com 4dbdf4a0ca remove invalid assertion 1999-11-18 04:30:54 +00:00
rginda%netscape.com 92dcf9cfb2 Added ^c handler, beginnings of html output. 1999-11-18 04:14:00 +00:00
rginda%netscape.com 6130ec762c * 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.
1999-11-17 22:33:05 +00:00
rginda%netscape.com 66eace8ec4 Initial checkin of "import test list" dialog. 1999-11-17 22:31:07 +00:00
rginda%netscape.com 215c9fb617 * Global.java
Cleared global.exitCode in quit() just to be safe.
* Main.java
  Adjusted exit code constants to match the js and xpcshells.
1999-11-17 20:26:17 +00:00
rogerl%netscape.com 32dc38be7a Changes for JS1.5 build under AIX4.3.
(Not a part of SeaMonkey builds)
1999-11-17 18:34:04 +00:00
brendan%mozilla.org 91f5474c6d Unregress top-level lambda expressions not in with statements to avoid full closure overhead. 1999-11-17 07:41:12 +00:00
brendan%mozilla.org 9dea6e1311 Whitespace, comment, and bracing diffs. 1999-11-17 04:32:37 +00:00
brendan%mozilla.org 0c23adf941 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.
1999-11-17 04:13:05 +00:00
rginda%netscape.com ddf7c8abff Initial add of new (universal) perl test driver, and test case selection tool. 1999-11-17 02:05:29 +00:00
rogerl%netscape.com a4b5bd38a3 Added changes at Jane's request.
(Not a prt of SeaMonkey build)
1999-11-17 00:05:45 +00:00
rogerl%netscape.com 611b51e8af Added new defs at Jane's request.
(Not a prt of SeaMonkey build)
1999-11-17 00:04:49 +00:00
norris%netscape.com 0bc8473ac6 Make -f semantics match those of the C engine. 1999-11-17 00:04:17 +00:00
norris%netscape.com cc086cb5fe Add contributor. 1999-11-16 23:58:11 +00:00
norris%netscape.com 607deed027 rginda's changes for having quit() take an exit code. 1999-11-16 23:57:23 +00:00
rogerl%netscape.com 8144a593a1 r=norris.
Fix overrun by back-reference digit sequence parsing.
1999-11-16 23:54:18 +00:00
rogerl%netscape.com cdcebfe33e r=norris
Fix for toString under 1.2 - calls toSource which provides extra '{}' that
doesn't match previous behaviour.
1999-11-16 23:53:33 +00:00
rogerl%netscape.com 4854c3f97e r=norris
Fixed handling of weird indices (NaN etc) for charCode and charCodeAt.
Bug #16984
1999-11-16 23:52:08 +00:00
rogerl%netscape.com 3894fb0d94 r=norris.
Changes for ECMA compatible function.apply handling of missing or null args
Bug #16984
1999-11-16 23:51:02 +00:00
jdunn%netscape.com d70d78c6bf Fixing all unresolved symbols on unix. The bug has the diff's
r dp@netscape.com (ramiro helped me with it)
# 18688
1999-11-16 06:02:31 +00:00
brendan%mozilla.org 51bd99c904 Fix exception bytecodes to use script->main (18926, r=jband@netscape.com). 1999-11-16 02:15:22 +00:00
rogerl%netscape.com 437f6d82ed Backing out changes to script.exec scope access. r=norris 1999-11-15 22:54:06 +00:00
jband%netscape.com d70c6df7f7 r=norris. Fix for bug 18702. Adds code to track whether caller to xpconnect is native or JS. This allows xpconnect to decide to not call security manager to filter calls originating from native code 1999-11-15 22:11:21 +00:00
brendan%mozilla.org 983c73ff27 Disassembler uses ToSource, not ToString, where appropriate (DEBUG only change). 1999-11-15 21:11:59 +00:00