Commit Graph

3348 Commits

Author SHA1 Message Date
pschwartau%netscape.com
8618e4b55b Minor changes. 2001-05-07 21:43:38 +00:00
pschwartau%netscape.com
8c5c09ac84 Initial add. Testcase by Brendan from bug 72884. 2001-05-07 20:30:59 +00:00
pschwartau%netscape.com
0b7f770e10 Initial add. A testcase for the switch statement. 2001-05-07 14:31:00 +00:00
pschwartau%netscape.com
4b7e03b8ac Initial add. Regression test for bug 79129. 2001-05-07 05:35:06 +00:00
nboyd%atg.com
e4bf1b6548 Fix problems noted in following mail:
Subject:
        rhino bug(s)
   Date:
        Mon, 30 Apr 2001 23:07:00 -0700
   From:
        Mike Dixon <MDixon@placeware.com>
     To:
        nboyd@atg.com




hi.  i'm a happy rhino user, and just stumbled across what looks like a
pretty basic bug in the property stuff on ScriptableObject...  (i'm running
1.5, but it looks like this code hasn't changed in CVS.)  since it looks
like you're actively developing (even though it's been a while since
1.5...) i figured you might be interested -- apologies if i missed a more
formal bug reporting process...

the symptom was that i got a "Hashtable internal error" thrown from
getSlotToSet.  reading the code, here's what i think could happen:

- create a new object (slots.length is initially 5)
- add 3 properties
- delete those 3 properties

(now count == 0, and slots[i] == REMOVED for 3 values of i)

- add 2 more properties

now assume that you're unlucky, and that these two hash to different values
than the first three; now you have 2 elements of slots[] containing real
slots, and the other three containing REMOVED.

now what happens when you try to create another slot?  getSlotToSet is only
willing to put something in a null slot[], and you haven't got one, so you
get the internal error.

writing this message encouraged me to try to write a test case to reproduce
it, and in fact it's trivial:

   js> x={}; x.a=x.b=x.c=1; delete x.a; delete x.b; delete x.c; x.d=x.e=1
   1
   js> x.whatever=1
(boom)

by the way, while reading the code i also noticed what looks like another,
less consequential bug: addSlot increments count before deciding to grow
the table, which is done with a recursive call, which will cause count to
be incremented again -- right?  as far as i can tell, setting count too big
will only cause it to grow the table a little early next time, so it
doesn't really matter, but it looks wrong.

                                                        .mike.
2001-05-06 23:56:34 +00:00
pschwartau%netscape.com
1d761239c9 Minor style changes. 2001-05-06 18:07:12 +00:00
nboyd%atg.com
a426bf2e85 New updates from Igor. 2001-05-05 18:25:00 +00:00
pschwartau%netscape.com
ff8e5de2ea More getter and setter tests. These are non-ECMA and not implemented in Rhino. 2001-05-05 17:27:12 +00:00
pschwartau%netscape.com
ac008beb56 Initial add. 2001-05-05 17:24:07 +00:00
kandrot%netscape.com
afdac97c93 Check in for Ron Guilmette. r=shaver, sr=waterson. For intl r=nhotta. Changes for NS_IMPL_NSGETMODULE. bug #46775. 2001-05-05 05:33:37 +00:00
brendan%mozilla.org
67c2a11713 Fix DEBUG-only bytecode stack input/output tracing, patch from Steven C. Cole <scole@planet-nospam-web.com>. 2001-05-05 01:04:19 +00:00
rginda%netscape.com
3b4afaffe7 - not built -
updating windows build goop
2001-05-04 23:44:07 +00:00
rginda%netscape.com
beede1f605 part two of fix for bug 77081 r=rogerl, sr=brendan 2001-05-04 23:03:11 +00:00
beard%netscape.com
9c797b19b6 Allow building with javac from JDK 1.1.8. 2001-05-04 22:41:12 +00:00
rginda%netscape.com
7b9bae9390 - not built -
remove jsdIContext and jsdIThreadstate interfaces
add TYPE_BOOLEAN to jsdIValue
update callback signatures to reflect the removal of jsdIContext and jsdIThreadstate
add errorHook and throwHook attributes to jsdIDebuggerService
2001-05-04 22:16:27 +00:00
rginda%netscape.com
e63e15d4e8 - not built -
remove jsdContext and jsdThreadstate objects
2001-05-04 22:14:37 +00:00
rginda%netscape.com
219d06b740 - not built -
remove jsdThreadState and jsdContext objects.
consolidate ExecutionHook and BreakpointHook callbacks
remove return value checking from all methods (xpconnect does this for us.)
2001-05-04 22:14:04 +00:00
rginda%netscape.com
85a251ea0c - not built -
remove HAVE_PATCH_FROM_77081 not that 77081 is checked in.
2001-05-04 21:57:43 +00:00
rginda%netscape.com
b2835efa22 fix for 77081, r=rogerl, sr=brendan. 2001-05-04 21:48:48 +00:00
rginda%netscape.com
f951c3a3e9 fix for bug 76574, r=rogerl, sr=brendan. 2001-05-04 21:34:21 +00:00
rginda%netscape.com
4fdba8a9ea fix for bug 77807, r=rogerl, sr=brendan 2001-05-04 21:31:48 +00:00
peterv%netscape.com
5f1945a60d Define EXPORT_JS_API. r=rginda, r=beard, sr=brendan. 2001-05-04 21:30:55 +00:00
nboyd%atg.com
3d11fc509c Make the debugger's main class be Main.java to match convention. 2001-05-04 15:22:10 +00:00
nboyd%atg.com
a89f7ff632 Re-apply changes since repository copy. 2001-05-04 15:20:26 +00:00
peterv%netscape.com
2f35172dca Get the JS debugger building on Mac. Not part of the build. 2001-05-02 22:15:28 +00:00
peterv%netscape.com
8014d291a7 Get the JS debugger building on Mac. Not part of the build. 2001-05-02 22:08:11 +00:00
pschwartau%netscape.com
6fac4f1902 Minor change to status message. 2001-05-02 18:15:26 +00:00
pschwartau%netscape.com
f5e98e5aa1 Initial add. Regression test for bug 74474. 2001-05-02 00:27:29 +00:00
pschwartau%netscape.com
edfd7284cc Initial add. Regression test for bug 31316. 2001-05-01 23:35:15 +00:00
pschwartau%netscape.com
fbbc46f334 Initial add. Regression test for bug 76683. 2001-05-01 21:57:10 +00:00
rginda%netscape.com
8810f8447e - not built -
add invalidate() method to jsdIScript
rework jsdIScriptHook interface
2001-05-01 21:37:24 +00:00
rginda%netscape.com
1092c0297b - not built -
add debug instance counter for jsdScript
add mValid flag to jsdScript
2001-05-01 21:35:06 +00:00
rginda%netscape.com
ff2e6466f4 - not built -
validate integrity of jsdScript data to guard against calling into a destroyed script.
queue up script deletes that happen during the JS GC cycle, call them when GC finishes (bug 76979.)
don't NS_IF_ADDREF objects that we get using *::FromPtr()
add jsdScript::Invalidate()
2001-05-01 21:33:43 +00:00
beard%netscape.com
e58e72baa7 Now builds two sub-projects, jscore.mcp, jstools.mcp and merges the resulting jar files into js.jar. This uses the new source tree organization. 2001-05-01 17:24:48 +00:00
beard%netscape.com
9499e65b11 Builds org.mozilla.javascript.tools.* classes. 2001-05-01 17:19:16 +00:00
beard%netscape.com
3f651fabb5 Builds core org.mozilla.* classes. 2001-05-01 17:18:14 +00:00
pschwartau%netscape.com
16f2897f99 Initial add. Regression test for bug 78156. 2001-04-30 22:54:09 +00:00
cls%seawood.org
00f28396a9 Set EXPORT_LIBRARY=1 in all pertinent Makefile.ins. Allows us to build the final link list as we traverse the tree. Bug #46775 2001-04-28 19:48:12 +00:00
beard%netscape.com
29d9c8b87e Reverted back to old directory structure. 2001-04-27 22:57:30 +00:00
beard%netscape.com
5a22dc57e8 Restore revision history. 2001-04-27 19:45:52 +00:00
beard%netscape.com
ad25062b57 Restore revision history. 2001-04-27 19:37:39 +00:00
beard%netscape.com
7475f14841 Restore revision history. 2001-04-27 18:57:38 +00:00
pschwartau%netscape.com
a20cfaa7a1 Minor whitespace cleanup. 2001-04-26 20:49:14 +00:00
pschwartau%netscape.com
1097cf1b6d Minor change: improving variable names for greater clarity - 2001-04-26 00:18:09 +00:00
pschwartau%netscape.com
ab41e1cf3a Minor improvement: in a shell file, keep the scope of i, j as local as possible - 2001-04-26 00:09:56 +00:00
beard%netscape.com
3f57dc791f Reconstructed using new rhino/src and rhino/toolsrc directory organization. 2001-04-25 22:32:20 +00:00
rginda%netscape.com
c6126f91b8 - not built -
add GetService() member
2001-04-25 21:55:20 +00:00
rginda%netscape.com
6597a26d94 - not built -
register for gc callbacks
explicitly create a singleton factory
only call OnScriptLoaded() if |creating| is true
2001-04-25 21:54:59 +00:00
rginda%netscape.com
8aa3a5289f - not built -
move from pc as a ulong to pc as an object wrapped around a uword (jsdIPC)
rename init() to on() on jsdIService
move lineToPc and pcToLine from jsdIThreadState to jsdIScript (where they belong)
add setBreakpoint(), clearBreakpoint(), and clearAllBreakpoints() to jsdIScript
add off(), clearAllBreakpoints(), and breakpointHook attribute to jsdIService
add creatorURL, creatorLine, constructorURL, constructorLine, and value attribut
es to jsdIObject
2001-04-25 18:29:51 +00:00
rginda%netscape.com
93bbcdcd2a - not built -
move from pc as a ulong to pc as an object wrapped around a uword
relocate jsdService constructor to jsd_xpp.cpp in order to initialize the global
 service
2001-04-25 18:22:49 +00:00