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

3348 Коммитов

Автор SHA1 Сообщение Дата
pschwartau%netscape.com 7d4e1eeb4c Minor changes. 2001-05-07 21:43:38 +00:00
pschwartau%netscape.com 457b80c8d5 Initial add. Testcase by Brendan from bug 72884. 2001-05-07 20:30:59 +00:00
pschwartau%netscape.com 85347e9dcc Initial add. A testcase for the switch statement. 2001-05-07 14:31:00 +00:00
pschwartau%netscape.com b24167e755 Initial add. Regression test for bug 79129. 2001-05-07 05:35:06 +00:00
nboyd%atg.com 6a31817fc0 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 985fbd2788 Minor style changes. 2001-05-06 18:07:12 +00:00
nboyd%atg.com e43780d77f New updates from Igor. 2001-05-05 18:25:00 +00:00
pschwartau%netscape.com ef58c30b2e 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 e8c2c0753f Initial add. 2001-05-05 17:24:07 +00:00
kandrot%netscape.com d5bd552195 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 bd12d20c84 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 2e672b615b - not built -
updating windows build goop
2001-05-04 23:44:07 +00:00
rginda%netscape.com 05fa3133e8 part two of fix for bug 77081 r=rogerl, sr=brendan 2001-05-04 23:03:11 +00:00
beard%netscape.com 59f2a66be3 Allow building with javac from JDK 1.1.8. 2001-05-04 22:41:12 +00:00
rginda%netscape.com cab9e070b6 - 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 58b8d4cafe - not built -
remove jsdContext and jsdThreadstate objects
2001-05-04 22:14:37 +00:00
rginda%netscape.com 80dbc00881 - 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 4c606bc2eb - not built -
remove HAVE_PATCH_FROM_77081 not that 77081 is checked in.
2001-05-04 21:57:43 +00:00
rginda%netscape.com 9429126f5d fix for 77081, r=rogerl, sr=brendan. 2001-05-04 21:48:48 +00:00
rginda%netscape.com 0f20a53afc fix for bug 76574, r=rogerl, sr=brendan. 2001-05-04 21:34:21 +00:00
rginda%netscape.com 7c8d2bc302 fix for bug 77807, r=rogerl, sr=brendan 2001-05-04 21:31:48 +00:00
peterv%netscape.com c6b93e2149 Define EXPORT_JS_API. r=rginda, r=beard, sr=brendan. 2001-05-04 21:30:55 +00:00
nboyd%atg.com b7b1277d17 Make the debugger's main class be Main.java to match convention. 2001-05-04 15:22:10 +00:00
nboyd%atg.com 5d5c5d4cea Re-apply changes since repository copy. 2001-05-04 15:20:26 +00:00
peterv%netscape.com f8dfbc931f Get the JS debugger building on Mac. Not part of the build. 2001-05-02 22:15:28 +00:00
peterv%netscape.com 61be90661b Get the JS debugger building on Mac. Not part of the build. 2001-05-02 22:08:11 +00:00
pschwartau%netscape.com b93cea1370 Minor change to status message. 2001-05-02 18:15:26 +00:00
pschwartau%netscape.com 8190b73240 Initial add. Regression test for bug 74474. 2001-05-02 00:27:29 +00:00
pschwartau%netscape.com 90756d00ab Initial add. Regression test for bug 31316. 2001-05-01 23:35:15 +00:00
pschwartau%netscape.com 43b71e1c46 Initial add. Regression test for bug 76683. 2001-05-01 21:57:10 +00:00
rginda%netscape.com e53b69b6ab - not built -
add invalidate() method to jsdIScript
rework jsdIScriptHook interface
2001-05-01 21:37:24 +00:00
rginda%netscape.com 033de8731c - not built -
add debug instance counter for jsdScript
add mValid flag to jsdScript
2001-05-01 21:35:06 +00:00
rginda%netscape.com 100d86b9c1 - 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 88d5a8805e 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 1be8074e20 Builds org.mozilla.javascript.tools.* classes. 2001-05-01 17:19:16 +00:00
beard%netscape.com 7f24b09b7b Builds core org.mozilla.* classes. 2001-05-01 17:18:14 +00:00
pschwartau%netscape.com 9eefcf7c44 Initial add. Regression test for bug 78156. 2001-04-30 22:54:09 +00:00
cls%seawood.org 25c6dc1c7e 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 427a42274b Reverted back to old directory structure. 2001-04-27 22:57:30 +00:00
beard%netscape.com 7ea45fd514 Restore revision history. 2001-04-27 19:45:52 +00:00
beard%netscape.com 5c11154b23 Restore revision history. 2001-04-27 19:37:39 +00:00
beard%netscape.com f1c90f9844 Restore revision history. 2001-04-27 18:57:38 +00:00
pschwartau%netscape.com 58e322afe1 Minor whitespace cleanup. 2001-04-26 20:49:14 +00:00
pschwartau%netscape.com df59051d57 Minor change: improving variable names for greater clarity - 2001-04-26 00:18:09 +00:00
pschwartau%netscape.com 8343975341 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 947e3026ac Reconstructed using new rhino/src and rhino/toolsrc directory organization. 2001-04-25 22:32:20 +00:00
rginda%netscape.com 47f18d438b - not built -
add GetService() member
2001-04-25 21:55:20 +00:00
rginda%netscape.com 402639c0b0 - 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 4147e2be2f - 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 83f0bc57b2 - 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