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

1820 Коммитов

Автор SHA1 Сообщение Дата
norris%netscape.com 45e50c92ec Fix icode printing for call opcodes. 2000-01-19 18:38:42 +00:00
brendan%mozilla.org 29407e7811 Long-awaited fix courtesy rogerl's keen analysis (19165, r=rogerl@netscape.com). 2000-01-19 03:53:07 +00:00
briano%netscape.com e59cc23b7a Some platforms object to using JS_ASSERT without including jsutil.h. 2000-01-19 03:00:04 +00:00
rginda%netscape.com 9d15dd5398 Initial add. 2000-01-19 01:46:25 +00:00
rginda%netscape.com 60536f2579 Added regexp to test 2000-01-19 01:36:54 +00:00
rginda%netscape.com ed03eb79bc Initial Add 2000-01-19 01:19:16 +00:00
rginda%netscape.com 736dbc069e Initial add 2000-01-19 00:51:21 +00:00
rginda%netscape.com 99c40099b9 corrected testcase 2000-01-19 00:47:24 +00:00
rginda%netscape.com 4278d5e809 initial add 2000-01-19 00:34:03 +00:00
rginda%netscape.com 3c669da0f2 Initial add 2000-01-19 00:16:20 +00:00
rginda%netscape.com 782a39ee6a initial add 2000-01-19 00:08:55 +00:00
shaver%netscape.com f5b56c6147 reminder comment, r=brendan 2000-01-18 22:38:56 +00:00
shaver%netscape.com ae2a2a6c9a add JS_CompileFileHandleForPrincipals, (r=rginda) 2000-01-18 22:04:01 +00:00
brendan%mozilla.org aa5a0aa2f8 JS1.5 fixes (17290, 21618, plus shaver's 22243 fix, r=shaver@mozilla.org). 2000-01-18 11:06:05 +00:00
rginda%netscape.com 8371c2ed5e revised incorrect testcase 2000-01-14 22:23:08 +00:00
jband%netscape.com 3812f5b25a - checkin of test for arrays of interface fix that went in yesterday.
- fix to xpcconvert NativeData2JS to support getting JSObject of DOM object
even when not running on a DOM created JSContext.
- some updates to comments, etc.
r=mccabe
2000-01-14 08:26:34 +00:00
rginda%netscape.com da53f7cf33 Initial checkin of tostring test 2000-01-13 00:31:09 +00:00
rginda%netscape.com 2b3633bac7 First round of Mac related changes.
It runs now, but test list files and single test files on the command line are still broken.
2000-01-12 22:02:23 +00:00
pp%ludusdesign.com 13efd9e8c6 Converting usage of ::GetIID() to NS_GET_IID().
Bug #20232, r=scc@netscape.com
2000-01-11 20:49:15 +00:00
waldemar%netscape.com d0ae5adcc3 Added unicode character category functions 2000-01-11 05:55:58 +00:00
cls%seawood.org 9f3b874745 Removed redundant XPDIST from the build. Changed existing references to DIST.
Replaced all uses of $(DIST)/include with $(PUBLIC) except those looking for NSPR headers.
Removed extra instances of $(DIST)/include or $(PUBLIC) from INCLUDES as it's already there.
Override OS_LIBS when setting host variables for cross-compiling.
2000-01-11 05:13:01 +00:00
beard%netscape.com c7b3eb0e20 initial check-in. 2000-01-11 01:46:27 +00:00
jdunn%netscape.com 157f231d1d Fix base class specifiers, since be default if they aren't specified it is Private
# 23237
r= warren@netscape.com, ftang@netscape.com, jband@netscape.com
2000-01-11 01:45:34 +00:00
waldemar%netscape.com 0f267bc1c5 First Checked In. 2000-01-10 21:22:43 +00:00
waterson%netscape.com 3b6393572f Bug 23320. Per Franz.Sirl-kernel@lauterbach.com's suggestion, fix passing of va_list for platforms that typedef to an array. r=brendan 2000-01-08 00:32:25 +00:00
rginda%netscape.com bd542dfc84 s/local/my for strict mode.
y2k fix for results file name.
2000-01-07 21:39:36 +00:00
jdunn%netscape.com 1dbef33576 resolving all unresolved symbols at link time
#= 18896 (continuation)
r= pepper@netscape.com - but ramiro and I talked about these types of changes ages ago
2000-01-07 02:46:06 +00:00
jband%netscape.com f986aba1d9 change the module string name. not part of build 2000-01-07 02:25:47 +00:00
jband%netscape.com c0ebf00c8d use generic module stuff. My part to fix bug 22922. r=dp 2000-01-07 02:24:39 +00:00
jband%netscape.com af2fe335e0 add support for Components.Constructor to build constructors for xpcom objects from JS. r=mccabe 2000-01-07 02:21:14 +00:00
jband%netscape.com 5b66748af5 fix leak of argument formatters upon JSContext destruction. bug 22802. r=rogerl 2000-01-07 02:19:44 +00:00
rogerl%netscape.com 0feaa34bf0 Fixed accidental trailing semi at end of if statement. Many thanks to
everyone who participated in this test of the warning detection system.
2000-01-07 00:15:11 +00:00
norris%netscape.com 1863256a5e Test didn't work with the Rhino feature of reflecting bean properties as JavaScript propertes: getClass() becomes
a "class" property, and eval'ing a property name of "class" causes a syntax error.
2000-01-06 22:54:15 +00:00
norris%netscape.com ea827c112d Propagate fix from branch. 2000-01-06 16:28:43 +00:00
edburns%acm.org 507ee16e37 I know it's unorthodox to do a top level checkin like this, but I've got so many files
in so many different directories, that I think it's the best way.
I've pulled and clobber_all'd my tree and got

r=dp

on this checkin.

Here are the touched files:

M mozilla/embedding/browser/activex/src/control/MozillaBrowser.cpp
M mozilla/embedding/browser/activex/src/control/MozillaBrowser.h
M mozilla/js/src/xpconnect/shell/xpcshell.cpp
M mozilla/netwerk/protocol/res/src/nsResProtocolHandler.cpp
M mozilla/xpcom/build/nsXPComInit.cpp
M mozilla/xpcom/components/nsComponentManager.cpp
M mozilla/xpcom/components/nsIServiceManager.h
M mozilla/xpcom/components/nsServiceManager.cpp
M mozilla/xpcom/io/nsSpecialSystemDirectory.cpp
M mozilla/xpcom/io/nsSpecialSystemDirectory.h
M mozilla/xpcom/tests/TestBuffers.cpp
M mozilla/xpcom/tests/TestPipes.cpp
M mozilla/xpcom/tests/TestShutdown.cpp
M mozilla/xpcom/tests/windows/TestHelloXPLoop.cpp
M mozilla/xpcom/tools/registry/regExport.cpp
M mozilla/xpcom/tools/registry/regxpcom.cpp
M mozilla/xpinstall/stub/xpistub.cpp
M mozilla/webshell/embed/ActiveX/MozillaBrowser.cpp
M mozilla/webshell/embed/ActiveX/MozillaBrowser.h
M mozilla/webshell/tests/viewer/nsMacMain.cpp
M mozilla/webshell/tests/viewer/nsPhMain.cpp
M mozilla/webshell/tests/viewer/nsWinMain.cpp
M mozilla/webshell/tests/viewer/unix/gtk/nsGtkMain.cpp
M mozilla/xpfe/appshell/src/nsFileLocations.cpp
M mozilla/xpfe/bootstrap/nsAppRunner.cpp

The heart of this checkin is a change in the signature and symantics
of NS_InitXPCOM.

The new signature is

extern NS_COM nsresult
NS_InitXPCOM(nsIServiceManager* *result, nsFileSpec* binDirectory);

I filed a bug for this problem:

b=23157

The original manifestation of this bug was in mozilla/netwerk/protocol/res/src/nsResProtocolHandler.cpp It used the current process directory to find resources, which is not correct when the current process is not mozilla.exe.

I have added a new type to nsSpecialSystemDirectory, Moz_BinDirectory, and made nsResProtocolHandler use that value.
2000-01-06 01:05:13 +00:00
jdunn%netscape.com 7b79fbab8e |T| requires an accessible default constructor (on some old compilers)
This is the same as mozilla/netwerk/cache/mgr/nsCachedNetData.h
(also declared nsIXPCWrappedNativeScope to be public since by default it is private

r= scc@netscape.com
2000-01-06 00:59:07 +00:00
jband%netscape.com 74ff2c13a8 adding new files. not part of build 2000-01-03 22:34:01 +00:00
blizzard%redhat.com 8ec176345e Change nsComponentManager::ProgIDToCLSID to nsComponentManager::ProgIDToClassID as per bug #3579. Checking in for sford. r=scc,r=blizzard 1999-12-30 22:03:58 +00:00
rogerl%netscape.com 783fd83ec9 Need to update the value of newly created closure. 1999-12-24 00:49:44 +00:00
rogerl%netscape.com 81a5119396 Clean-up message text 1999-12-23 00:16:07 +00:00
rogerl%netscape.com 7f67f0dd19 Fixed copyright dates and added lincense boilerplate. 1999-12-22 22:03:59 +00:00
rogerl%netscape.com f6a646e61d Changed comment format to C-style. 1999-12-22 22:02:16 +00:00
rogerl%netscape.com d9c48d303c r=brendan
Bug #20444, delete of non-reference
1999-12-22 22:01:19 +00:00
rogerl%netscape.com 878af4fc61 r=brendan
Bug #21836, apply didn't check for non-object argument.
1999-12-22 22:00:07 +00:00
rogerl%netscape.com 77804d502b r=brendan
Bug #21799, uncaught throw of null crash.
1999-12-22 21:58:53 +00:00
rogerl%netscape.com e94220b323 r=norris
Bug #20547 & 20549 - ECMA3 compatible handling of String.replace and fixes
to $ handling.
1999-12-22 21:57:10 +00:00
cls%seawood.org 865a6613b1 Partial fix for bug 20254. Allow flags passed to CFLAGS during configure be used for both compiling & linking. CFLAGS as we know it becomes COMPILE_CFLAGS so that platforms that cannot link using DSO flags (qnx) can still build. The new CFLAGS will not have DSO flags and will be used primarily for linking.
Remove OPTIMIZER & XP_DEFINE from config.mk
1999-12-22 03:40:16 +00:00
mccabe%netscape.com 7677f4e2f1 #ifdefs to build the JavaScript engine under metrowerks on windows machines.
Fixes courtesy Chris Dillman <chrisd@plaidworld.com>.

r=mccabe
a=sdagley
1999-12-22 00:03:50 +00:00
sspitzer%netscape.com 72745ae997 ignore generated Makefile 1999-12-21 22:41:26 +00:00
jband%netscape.com a6a7dafb9d fix new warnings resulting from my carpool 1999-12-18 22:33:18 +00:00
jband%netscape.com 9093129c45 added files: mozilla/js/src/xpconnect/idl/nsIXPConnect.idl 1999-12-18 21:08:57 +00:00
jband%netscape.com ff7e1b16eb added files: mozilla/js/src/xpconnect/src/xpcwrappednativescope.cpp, mozilla/js/src/xpconnect/src/xpcjsruntime.cpp 1999-12-18 20:29:52 +00:00
jband%netscape.com 7d0cb0f4bb Landing big set of DOM and XPConnect changes:
DOM: getting rid of JS_GetContextPrivate wherever possible. Use static parent
links where we can. When we do need to find this info about the caller
we call a function that knows how to get that info rather than inline calls
to JS_GetContextPrivate. This is all required for calling DOM objects on
non-DOM JSContexts as we do via xpconnect.

XPConnect: basic refactoring work to disassociate wrappers from the JSContext
that was active when the wrapper was constructed. This allows for calling into
wrapped JS objects on the right JSContext and for proper grouping of wrapped
native objects so that they can share proto objects. This also allows for
better sharing of objects and lays the foundations for threadsafety and
interface flattening.

Also, xpconnect tests are reorganized and improved.

fixes bugs: 13419, 17736, 17746, 17952, 22086

r=vidur r=mccabe r=norris r=cbegle
a=chofmann
1999-12-18 20:29:29 +00:00
jband%netscape.com 55ec74cc90 removed files: mozilla/js/src/xpconnect/idl/xpctest.idl, mozilla/js/src/xpconnect/idl/xpctest2.idl 1999-12-18 19:10:33 +00:00
rginda%netscape.com 6890b0fa05 Updated to match the js1.5 announcement's terminology 1999-12-18 00:53:53 +00:00
rogerl%netscape.com f0e5935203 Fixed typeof test on enumerated object result - is always string now. 1999-12-17 01:53:48 +00:00
waterson%netscape.com ed184cc3e5 Bug 21643. Temporary hack to avoid leaking root wrapper when creating both, and root != wrapper. Note that the fix is 'sloppy', as there are flows-of-control that could potentially leak the NS_ADDREF(); however, since jband is rewriting this stuff RSN, and that stuff doesn't really ever fail too often, we'll let i slide. r=jband 1999-12-17 00:02:58 +00:00
norris%netscape.com 9f5f5b9010 Fix Counter example. 1999-12-16 22:49:50 +00:00
rginda%netscape.com 052b60e96a Updated README document.
formatting nit in jsDriver.pl
Added comment to the rhino neg list
1999-12-16 22:38:49 +00:00
rginda%netscape.com 91d4767032 Added verbose flag for testcase debugging purposes 1999-12-16 22:35:43 +00:00
rginda%netscape.com 3978f9a561 Fix spacing nit. 1999-12-16 22:34:05 +00:00
rginda%netscape.com a4077938aa Fixed 001 test, added 002 test 1999-12-16 22:32:52 +00:00
norris%netscape.com af3dc99891 Make it possible to report multiple errors. 1999-12-16 18:47:27 +00:00
rginda%netscape.com fec9deb9bd Added apply test for bug 21836 1999-12-16 00:21:36 +00:00
rginda%netscape.com f3ac71b138 Adding null throw and undefined throw tests 1999-12-15 21:17:25 +00:00
mccabe%netscape.com aa37195e4c Add missing JS_END_EXTERN_C to match JS_BEGIN_EXTERN_C at the beginning. Thanks to Till Volmer <tvollmer@hyperwave.com> cor spotting this.
r=mccabe, a=brendan.
1999-12-14 22:39:54 +00:00
briano%netscape.com 3be5dd203e Final portion of the fix for bug 20882. Just a cleaner way of doing what is already being done. 1999-12-14 00:56:50 +00:00
rginda%netscape.com bb32a64f07 Simple get/set test. 1999-12-13 22:47:31 +00:00
shaver%netscape.com eec450b6fb fix JS component loader by reimplementing nsGenericModule (r=dveditz,slamm;a=leaf) 1999-12-13 22:33:11 +00:00
rginda%netscape.com 28a7dddd89 Added printStatus function to shell.js
Added some catchguard tests
1999-12-13 00:37:01 +00:00
rogerl%netscape.com ac68fa5784 Fixed test of enumerated property to use isNaN - a previous bug fix in
enumerated types stopped it from returning anything but strings here.
1999-12-11 00:44:02 +00:00
rogerl%netscape.com 41ac2fc0ce Removed tests invalidated by new argument rules - java.lang.String is
preferred over java.lang.Double when coming from a Java Object and both
Double & Float have constructors that take a String - only the DataType
toString doesn't return the correct value for the test. (See Christine's
comment).
1999-12-11 00:42:43 +00:00
rogerl%netscape.com 42554e50d0 Updated tests to account for new LiveConnect behaviour for JS array type
as input argumnet - it used to be handled as any other JS object, but there
are now new rules for arrays, invalidating portions of these tests.
1999-12-10 19:56:23 +00:00
norris%netscape.com 9bfc309105 Remove unused member variable. 1999-12-09 23:37:18 +00:00
beard%netscape.com 5036447688 fixes case where an InterpretedFunction has both a closure and needs an activation. 1999-12-09 22:05:09 +00:00
briano%netscape.com ac58e786e5 QNX-specific build bustage fix. va_list is an array on QNX, so assignments need to use array notation. 1999-12-09 03:09:56 +00:00
rogerl%netscape.com 14f48a28d6 smaller faster better - it'll probably burn up on entry. 1999-12-09 00:26:09 +00:00
norris%netscape.com cfd53b923f Add list of inapplicable tests for rhino. 1999-12-08 22:42:18 +00:00
rginda%netscape.com 0199cedcef Fixing stupid mistake. 1999-12-08 22:26:19 +00:00
rginda%netscape.com 1ca97dc352 Turned off automatic fslash insertion for shellpath (it now takes a full exe name)
Added --noexitmunge option for systems that don't report the exitcode/exitsignal "properly"
1999-12-08 22:21:41 +00:00
fur%netscape.com 47be6250a8 Fix #12367. Don't crash evaluating 'foo.constructor' if foo is a JavaObject.
r:none
1999-12-08 07:41:35 +00:00
briano%netscape.com ef14821692 Change for QNX 4 to work around their extremely limited compiler and linker, which aren't capable of creating an object from a lib as we're doing here with jsmath.o. 1999-12-08 04:03:24 +00:00
briano%netscape.com c96cde4b0f QNX-specific build bustage fix. Also excludes NTO just in case both are defined under Neutrino. 1999-12-08 03:58:40 +00:00
rogerl%netscape.com 2d5d12f031 Added 'flat' argument to NewRegExp to force literal interpretation of
entire string.
1999-12-08 01:48:03 +00:00
rogerl%netscape.com da6ac159a6 Needed a quick-and-dirty constructor from a string. 1999-12-08 01:47:13 +00:00
rogerl%netscape.com d038781fa8 Added 'flat' argument to NewRegExp to force literal interpretation of
entire string.
Fixed String.replace to not coerce first arg to regexp.
Fixed behaviour of replace w.r.t. $
1999-12-08 01:46:43 +00:00
rogerl%netscape.com ed43b28960 Added 'flat' argument to NewRegEXp to force literal interpretation of
entire string.
1999-12-08 01:44:08 +00:00
waldemar%netscape.com f48d85e294 Removed field, method, and constructor. Added static. 1999-12-08 00:35:00 +00:00
waldemar%netscape.com 1c60a49825 Fixed Harlequin incompatibilities 1999-12-08 00:34:29 +00:00
waldemar%netscape.com 654270558a Added next-token-unit. Simplified grammar and removed boolean actions that indicate whether the next token can be a regexp. Added assertion that a * can't follow a division. 1999-12-07 22:09:10 +00:00
waldemar%netscape.com d9fd9938e0 Added hash-table-entries 1999-12-07 22:07:04 +00:00
waldemar%netscape.com e816427e61 Fixed bug in forbidden terminalset calculations 1999-12-07 22:06:43 +00:00
waldemar%netscape.com d94ccc85f2 Made semantics compiled on Allegro 1999-12-07 22:04:58 +00:00
rginda%netscape.com be9b6a6ff5 Should be working on all platforms again. 1999-12-07 20:00:27 +00:00
rginda%netscape.com 732e0e0a48 More windows dual-build tweaks (arg!) 1999-12-07 19:56:40 +00:00
rginda%netscape.com 899c82b382 More tweaks to sm engine selection
Updated documentation to reflect tweaks
1999-12-07 19:47:06 +00:00
rginda%netscape.com 04a2ecc7a8 * jsDriver.pl
Fix it to know about the two kinds of spidermonkey make on windows
  (Makefile.ref and js.mak)
1999-12-07 19:35:45 +00:00
rginda%netscape.com ce5f5f9500 Fix exit code detection. 1999-12-07 00:22:06 +00:00
rogerl%netscape.com 60203eb6d0 Removed unsued local var version - shadowing caused typeof version test
to fail.
1999-12-06 23:53:57 +00:00
rginda%netscape.com 152f3ef815 * jsDriver.pl
Turn off trace by default (oops)
  Fix test list/ skil list output
1999-12-06 23:38:23 +00:00
rginda%netscape.com 460603af1d Moved test from js1_2 section 1999-12-06 23:32:25 +00:00
rogerl%netscape.com 2aea48f5af version() must have int type argument.
Fixed VERSION setting to match shell.js
Fixed 'pass!' string to match 'pass'
1999-12-06 22:47:51 +00:00
rogerl%netscape.com 50b35580d5 version() must have int type argument.
Fixed VERSION setting to match expected string in shell.js
1999-12-06 22:46:46 +00:00
rogerl%netscape.com 56d9ddc6f5 version() must have int type argument 1999-12-06 22:45:53 +00:00
norris%netscape.com e9d1f871b7 Fix ecma_3/ExecutionContexts/10.1.4-1.js 1999-12-06 19:03:21 +00:00
rginda%netscape.com f8be02c7e7 * README-jsDriver.html
Minor wording changes.

* jsDriver.pl
  Display negative list in output, fix display of test list as part of output (which was broken by the multiple test-list change)
  Added hours field in tastcase duration output (man that sparc20 is slow.)
1999-12-06 04:29:18 +00:00
rginda%netscape.com 4a049b3cdb Backing out. 1999-12-05 04:34:15 +00:00
rginda%netscape.com 23ea0358bd Checking in JS Component changes for shaver
"<shaverAway> slamm reviewed, I made the diff, it's a tested fix"
I built and ran here as well.
1999-12-05 03:36:59 +00:00
rginda%netscape.com c353bf74f2 * runtests2.pl was renamed to jsDriver.pl
jsDriver.pl now supports multiple lists to be specified in the -l argument,
and directory names as well.  Directory names can also be used in list files.
'Negative' lists are supported as well.  They consist of a list of tests to skip, and are of the same format as the regular lists.

* README-jsDriver.html
  man-like html page describing how to use jsDriver.pl
1999-12-05 02:15:22 +00:00
waldemar%netscape.com 1fff1418d4 Clean grammars on allegro to save memory 1999-12-04 05:04:08 +00:00
waldemar%netscape.com 2299109d45 Added canonical LR(1) grammars and grammar cleaning 1999-12-04 05:03:20 +00:00
waldemar%netscape.com 09fd8db28a First Checked In. 1999-12-04 05:01:34 +00:00
waldemar%netscape.com d1a96fc050 File Removed. 1999-12-04 05:01:06 +00:00
beard%netscape.com b930468a1d removed NativeClosure.java. 1999-12-04 00:32:16 +00:00
norris%netscape.com 33535e3b14 Fix instanceof. 1999-12-04 00:21:41 +00:00
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
brendan%mozilla.org 817c450eb6 Fix 18684, bad combo of old-latent and new bugs (r=shaver@mozilla.org). 1999-11-12 20:41:04 +00:00
waldemar%netscape.com bdcf4fd531 Changed external-link-base 1999-11-12 07:24:40 +00:00
waldemar%netscape.com 601517cf29 Added language declarations, ?id syntax, ^^, ^^=, units. Updated list of future reserved words. Allowed definitions in compount statements. 1999-11-12 07:24:19 +00:00
waldemar%netscape.com 7e1c468432 Updated list of keywords 1999-11-12 07:22:27 +00:00
brendan%mozilla.org c3a9800360 XULDOMJS_19991106_BRANCH landing (15146, 18025, r=shaver@mozilla.org) 1999-11-12 06:03:40 +00:00
mccabe%netscape.com e791da07ae Fix most remaining warnings in js/src. Patch courtesy slamm.
r=mccabe.
1999-11-11 21:52:35 +00:00
mccabe%netscape.com 2038be4c8f Warning fix for uninitialized structure members. r=fur,slamm. 1999-11-11 01:15:43 +00:00
waterson%netscape.com 28171fb013 Bug 18408. Use 'ObjectAt()' rather than 'Peek()', which looks at the
front of the queue. r=jband
1999-11-10 21:59:05 +00:00
shaver%netscape.com 9aa0c9d0e4 fix build bustage from big dumb shaver 1999-11-10 02:04:58 +00:00
shaver%netscape.com 74e1b89e09 - use JSThreadContextStack and JSRuntimeService (more) correctly in loader
- teach loader about unloading and deferring components
- turn off some DEBUG_shaver noise
- better error reporting
- use nsXPIDLCString
- use nsCOMPtr
- add missing cxstack->Pop() in the xpcshell
- Components.results.NS_ERROR_FACTORY_REGISTER_AGAIN (want better text for
  error message)
- handle thrown-nsresult correctly where C++ calls JS without an active JS
  stack
- remove missing cxstack->Pop() from TestXPC
r=jband,brendan
1999-11-10 00:34:26 +00:00
rogerl%netscape.com 37cda6d0ce Removed NativeClosure 1999-11-09 18:24:40 +00:00
norris%netscape.com 025bfe6158 Fix 18229: Bogus class file names being generated on Windows 1999-11-08 17:24:10 +00:00
dmose%mozilla.org 42fc94a6ec updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
dmose%mozilla.org 7a91d8fab2 updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:47:15 +00:00
taek%netscape.com 0072dc81eb updated to use /share/builds/components 1999-11-06 02:11:18 +00:00
drapeau%eng.sun.com 69eb4dbdcf r=fur@netscape.com, approval=chofmann@netscape.com. Fix for bug 5369
("[PP]Crash on startup because of Java Plug-in 1.3 for Netscape
Navigator.")  Make the code more bulletproof by checking for NULL
arguments to several methods.  If JVM isn't running, jEnv arg should
be NULL.

This doesn't entirely fix the problem of a JVM gone awry in all cases;
in the case of this particular bug, the Sun JDK 1.3 Beta HotSpot VM
caused an error, and there's no way for Mozilla code to detect this
failure mode.  The fix for that half of the problem is to use the new
JDK 1.3 Early Access VM, which does not exhibit the problem.
1999-11-06 00:24:42 +00:00
norris%netscape.com a4e924fe2a Unify evaluation code to improve consistency and improve code size. 1999-11-05 22:18:24 +00:00
norris%netscape.com 38a8ca4e67 Remove JSuncaughtExceptionLine, use an error reporter to report line number info instead. 1999-11-05 21:48:05 +00:00
norris%netscape.com 8ad5772c17 Improve performance of the non-error call code. 1999-11-05 21:23:10 +00:00
rogerl%netscape.com 17f55ab4a6 Removed - not an ECMA thing and supplanted by a different mechanism. 1999-11-04 00:01:00 +00:00
rogerl%netscape.com 448bd845c0 Fix back-reference parsing from going too far in source string 1999-11-04 00:00:14 +00:00
rogerl%netscape.com a9e5d64d21 Replaced Closure object with FunctionObject clone 1999-11-03 23:59:35 +00:00
rogerl%netscape.com 97edcab2f0 Removed NativeClosure 1999-11-03 23:58:51 +00:00
rogerl%netscape.com cbb133796d Fix nested finally endless loop.
Replaced Closure object with FunctionObject clone.
1999-11-03 23:57:56 +00:00
rogerl%netscape.com 94ebb494f8 Add closure support 1999-11-03 23:56:28 +00:00
rogerl%netscape.com a474444e6a Removing NativeClosure 1999-11-03 23:55:59 +00:00
rogerl%netscape.com 64616a42c4 Not a part of SeaMonkey Build
- new LiveConnect AIX4.3 makefile for server builds
1999-11-03 22:55:03 +00:00
rogerl%netscape.com 732304de4e Added defn of AIX4_3 to help fix dup typedef int8,int16 etc 1999-11-03 18:56:17 +00:00
mccabe%netscape.com f8ee12e046 Fix many nsInterfaceInfo leaks, thanks in part to patches provided by Patrick Beard. Fixes 15855. Some remain.
Clear up build warnings, and quiet nsInterfaceInfomanager debug output unless DEBUG_iim.  Makes startup a li'l less noisy.  Fixes 15628.

r=jband
1999-11-03 07:23:37 +00:00
waldemar%netscape.com 842058475c Removed distribution restrictions because this is part of the language spec 1999-11-03 03:59:31 +00:00
waldemar%netscape.com cda16b1c7d Updated to Mozilla 1.1 license 1999-11-03 03:58:07 +00:00
rogerl%netscape.com 85ac1ef068 Not a part of SeaMonkey Build
- added lnker option for server folks
1999-11-03 00:28:51 +00:00
jband%netscape.com 267171e19a r=mccabe use NS_NewTimer stuff only on Win32 in this test code. This avoids Unix build order problems that were keeping the xpconnect test components from working at all. 1999-11-02 23:35:54 +00:00
jband%netscape.com 62de9600f7 r=mccabe make output from xpcshell's new 'dump' method go to the same place as output of 'print': stdout rather than stderr 1999-11-02 23:31:09 +00:00
rogerl%netscape.com 5a9571975a Added Kurt Westerfeld's fix for 'undefined is not a function' message. 1999-11-02 22:52:10 +00:00