3472 Commits

Author SHA1 Message Date
pschwartau%netscape.com
e9beb6fbee Whitespace cleanup -
git-svn-id: svn://10.0.0.236/trunk@97162 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-14 19:53:47 +00:00
pschwartau%netscape.com
ee79da8116 Adding another case to the test.
git-svn-id: svn://10.0.0.236/trunk@97161 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-14 18:27:06 +00:00
pschwartau%netscape.com
88f3efa285 Initial add. Regression test for bug 85880 against Rhino.
git-svn-id: svn://10.0.0.236/trunk@97158 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-14 18:03:42 +00:00
nboyd%atg.com
51598f94ac Replace instances of append("x") with append('x') on StringBuffers,
removing the need for String object instances.


git-svn-id: svn://10.0.0.236/trunk@97156 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-14 17:42:44 +00:00
nboyd%atg.com
40912a9382 Mark deprecated.
git-svn-id: svn://10.0.0.236/trunk@97154 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-14 17:40:00 +00:00
nboyd%atg.com
a0ec3d9d28 Subject:
jsdoc.js - added simple support for methods
   Date:
        Thu, 14 Jun 2001 09:12:26 +0100 (GMT Daylight Time)
   From:
        Simon Massey <simon_massey@hotmail.com>
     To:
        <nboyd@atg.com>






First off let me say thanks a lot for rhino. It is a really excellent piece
of software.

I am writing a large piece of js for making Excel2000 htm interactive on IE
and other browser such as Netscape6. Use a alot of code OO using methods
along the lines of:

  /**
   * Constructor
   */
  function Type(x){
   this.x = x;
  }

  /**
   * Method
   */
  Type.prototype.getX = function(){
   return x;
  }

  var type = new Type('a');
  var a = type.getX();

I have added to jsdoc.js so that finds and documents the method
declarations.

Attached is my modified jsdoc.js and a sample of the html that it generates
for the some of our proprietry :-( "Axel" code.

As an aside have you seen the job that www.blox.com have done on making a
dhtml spreadsheet? Bet they wished they could use exceptions in Netscape4!

Looking forward to the production JSDebugger. The tip version is great. It
does however seem to trash the view that it has of a file when an eval call
is made in that file. Is there a work around or will I have to wait till
the production version?

Thanks Again!

Simon Massey


git-svn-id: svn://10.0.0.236/trunk@97153 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-14 17:38:37 +00:00
nboyd%atg.com
2ad29eb01c Fix bug 85880
git-svn-id: svn://10.0.0.236/trunk@97152 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-14 17:37:18 +00:00
jband%netscape.com
a293897afb fix SunOs bustage with a .get() on AutoMarkingPtr
git-svn-id: svn://10.0.0.236/trunk@97030 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-13 02:16:29 +00:00
jband%netscape.com
36346e8f41 fix bug 59751 and bug 84600. This adds an AutoMarkingPtr scheme to protect partially built objects from gc. Also make sure we don't allow JS object to implement non-scriptable interfaces. r=dbradley sr=brendan a=drivers
git-svn-id: svn://10.0.0.236/trunk@97027 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-13 01:22:32 +00:00
Xiaobin.Lu%eng.Sun.com
eb8d8568ec Fix for bug 74482, Calling top.window.close does not work
work done by Nikolay and me
r=beard sr=brendan a=asa


git-svn-id: svn://10.0.0.236/trunk@97018 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-13 01:04:29 +00:00
Xiaobin.Lu%eng.Sun.com
a67c6f0e53 Fix for bug 74482, Calling top.window.close() does not work
Work done by Nikolay and me
r=beard sr=brendan a=asa


git-svn-id: svn://10.0.0.236/trunk@97017 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-13 01:03:25 +00:00
nboyd%atg.com
0722b7b928 Names should be final.
git-svn-id: svn://10.0.0.236/trunk@96962 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 20:35:48 +00:00
nboyd%atg.com
8f91826ef5 Add archive info
git-svn-id: svn://10.0.0.236/trunk@96850 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-11 14:16:18 +00:00
pschwartau%netscape.com
2b6e776d0b Allow user-defined exit codes: fixed bug that was preventing this from working.
git-svn-id: svn://10.0.0.236/trunk@96748 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-08 22:05:32 +00:00
Xiaobin.Lu%eng.Sun.com
c693d77633 Fix for bug 77600
r=beard, sr=brendan, a=blizzard


git-svn-id: svn://10.0.0.236/trunk@96627 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-07 16:20:50 +00:00
nboyd%atg.com
afc37edd8e This adds the hasFeature method to Context and modifies
NativeDate.getYear to use
cx.hasFeature(Context.FEATURE_NON_ECMA_GET_YEAR) for the behavior check.


git-svn-id: svn://10.0.0.236/trunk@96626 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-07 16:09:57 +00:00
nboyd%atg.com
8f0f19bdba Clean up classloader usage to use the thread's context class loader.
git-svn-id: svn://10.0.0.236/trunk@96625 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-07 16:04:33 +00:00
brendan%mozilla.org
0ad0668194 Fix duplicate switch case detector bugs (83532, rogerl's patch, sr=jband, sr=brendan, a=chofmann).
git-svn-id: svn://10.0.0.236/trunk@96567 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-06 23:28:29 +00:00
pschwartau%netscape.com
24274d79a2 Thanks to rginda, a better fix for the previous issue -
git-svn-id: svn://10.0.0.236/trunk@96560 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-06 22:15:13 +00:00
pschwartau%netscape.com
fe110ed86e Improvement on last patch: make distinction between HTML vs. console failure output.
git-svn-id: svn://10.0.0.236/trunk@96536 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-06 16:52:20 +00:00
valeski%netscape.com
b75b28be35 r=chak, sr=vidur, a=tor. 82000. removing unused arg from nsICategoryManager.
git-svn-id: svn://10.0.0.236/trunk@96452 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 21:25:57 +00:00
pschwartau%netscape.com
87071e2791 Initial add.
git-svn-id: svn://10.0.0.236/trunk@96449 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 20:56:40 +00:00
pschwartau%netscape.com
1d7717c951 Making test a little more demanding -
git-svn-id: svn://10.0.0.236/trunk@96448 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 20:56:07 +00:00
nboyd%atg.com
0180d4e359 Patches from Igor:
-----
The patch adds to NativeArray.put a check for (this == start) so the
length field or a dense array element would not be updated if this !=
start. The following script exposes the problem:


function Test() { }

var array = new Array(0, 0); // Trigger dense mode
Test.prototype = array;

var test = new Test();

array[0] = 1;
test[0] = 2;

print(array[0]); // Should print 1, not 2
-----
When initially I switched NativeDate to use IdScritable, I made
toGMTString just an alias to toUTCString. Later I realized that it could
cause troubles if someone would check Date.prototype.toGMTString.name to
get "toUTCString" so I made the code to allocate a separated IdFunction
to toUTCString. Now when I read ecma 3 appendixes I see that the initial
behavior is what actually Ecma 3 requires. Here is an extract from B.2.6:

The Function object that is the initial value of
Date.prototype.toGMTString is the same Function
object that is the initial value of Date.prototype.toUTCString.

Sometimes doing nothing is the best solution...

The attached patch fixes that and inlines many 1-3 lines functions as
optimization that java compilers typically do not want to do...


git-svn-id: svn://10.0.0.236/trunk@96432 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 17:39:58 +00:00
pschwartau%netscape.com
770305d4cd Initial add.
git-svn-id: svn://10.0.0.236/trunk@96398 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 01:28:04 +00:00
pschwartau%netscape.com
fc17f35398 Added two new sections to the test.
git-svn-id: svn://10.0.0.236/trunk@96397 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 01:26:59 +00:00
jband%netscape.com
5ee87bd70e fix bug 84020 - don't override the context global, bug 83367 - add deferred Release of natives of wrappednatives to avoid nesting into js_AllocGCThing during JS gc, and bug 82274 - fix a little leak (patch from dbradley). sr=jst r=dbradley a=drivers
git-svn-id: svn://10.0.0.236/trunk@96387 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 00:59:53 +00:00
jband%netscape.com
e5d45072c3 fix bug 78428 by making sure to use the lesser of the freeslot or nslots value when marking slots. This is necessary because objects can now be in an initial state where the freeslots is a larger number than the nslots - and the actual number of slots in the array. sr=brendan r=beard a=drivers
git-svn-id: svn://10.0.0.236/trunk@96380 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 00:47:56 +00:00
jband%netscape.com
cf62f803ac fix bug 82034 by making wrapped Java objects be not JS natives again but with their own slot accessors. This should bring JS -> Java communication back to life. sr=brendan r=beard a=drivers
git-svn-id: svn://10.0.0.236/trunk@96374 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 00:39:13 +00:00
cls%seawood.org
0c2a0a2f8c Handle cygwin & mks uname output on win32.
Bug #72154 r=pschwartau@netscape.com a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@96365 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 00:08:21 +00:00
nboyd%atg.com
81fe5b223b The patch applies the following optimization to TokenStream:
1. Keyword search via Java Hahstable is replaced by explicit "switch"
code generated by idswitch tool. It not only speed up keyword search and
eliminates all Integer objects created to hold keyword tokens and
corresponding Hahstable structures, but it also reduces code size due to
very poor array initialization support in JVM.

2. It replaces the isXDigit method by xDigitToInt that either converts
its argument to 0..15 or returns -1 if it is not a hex digit and updates
the method usage accordingly The patch updates NativeGlobal.js_unescape
to reflect this usage change.


git-svn-id: svn://10.0.0.236/trunk@96301 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-04 13:59:30 +00:00
nboyd%atg.com
4d1da688c5 Have doc reference nested apidocs.
git-svn-id: svn://10.0.0.236/trunk@96300 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-04 13:58:51 +00:00
nboyd%atg.com
b505c474f2 Add skip for bug 83051
git-svn-id: svn://10.0.0.236/trunk@96299 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-04 13:55:22 +00:00
pschwartau%netscape.com
30b7a68a64 Intial add. Regression test for bug 83532.
git-svn-id: svn://10.0.0.236/trunk@96202 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-01 23:56:58 +00:00
nboyd%atg.com
1e0e59ecbf Add new CounterTest example.
git-svn-id: svn://10.0.0.236/trunk@96181 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-01 15:26:45 +00:00
jband%netscape.com
010607cb22 NOT PART OF ANY BUILD - adding a test case for use in demonstrating a crash to be fixed
git-svn-id: svn://10.0.0.236/trunk@96123 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-31 18:13:26 +00:00
nboyd%atg.com
ee0515beb7 Patch from Igor:
In the attached patch I added documentation, did some inlining in the
get method implementation to gain some speed and overrode defineProperty
so it plays better with id-based properties.


git-svn-id: svn://10.0.0.236/trunk@96120 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-31 14:44:21 +00:00
pschwartau%netscape.com
34bf40858b Improving the error-reporting mechanism to include bug number and status lines.
git-svn-id: svn://10.0.0.236/trunk@96089 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-31 00:17:45 +00:00
pschwartau%netscape.com
cd60162774 In this test, it's important to reportCompare() the other cases before the last case is attempted. Do not store results in an array.
git-svn-id: svn://10.0.0.236/trunk@96080 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-30 23:29:29 +00:00
pschwartau%netscape.com
bdc0c89c8a Initial add. Regression test for bug 83293.
git-svn-id: svn://10.0.0.236/trunk@96072 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-30 22:10:37 +00:00
nboyd%atg.com
85f382a005 For backwards compatibility keep an old method name used by
Batik and possibly others.


git-svn-id: svn://10.0.0.236/trunk@96060 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-30 17:29:42 +00:00
pschwartau%netscape.com
5c201ad740 Correcting error in InLeapYear() function.
git-svn-id: svn://10.0.0.236/trunk@96002 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-29 16:27:45 +00:00
pschwartau%netscape.com
cebc54062f Correcting mistake in InLeapYear() function.
git-svn-id: svn://10.0.0.236/trunk@96001 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-29 16:22:23 +00:00
pschwartau%netscape.com
a11be7cd22 Correcting mistake in InLeapYear() function.
git-svn-id: svn://10.0.0.236/trunk@96000 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-29 16:13:56 +00:00
pschwartau%netscape.com
8889d1f9d6 Correcting a mistake in InLeapYear() function.
git-svn-id: svn://10.0.0.236/trunk@95999 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-29 16:10:58 +00:00
nboyd%atg.com
7c91ae1175 Add new FAQ, remove obsolete one.
git-svn-id: svn://10.0.0.236/trunk@95998 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-29 15:11:17 +00:00
nboyd%atg.com
74c106ded4 Patches from Igor:
-----
The patch fixes a bug in getIds method where the assignment "result =
tmp" was missed, adds the public method activateIdMap(int maxId) to
IdScriptable and changes setAttributes method not to allow setting of
attributes that are less restrictive then ones returned by
getIdDefaultAttributes. That was supposed to be the case and the patch
makes it explicit.
-----
The patch makes BaseFunction.setImmunePrototypeProperty public so it can
be called from other packages (regexp).
-----
The patch switches NativeRegExp and NativeRegExpCtor to use
IdScriptable. It also changes code in a few places to passes Context and
RegExpImpl directly instead of using Context.getCurrentContext().

The patch also fixes a bug when

for (var i in RegExp) { print(i); }

would not include $1..$9 in the output in violation with Ecma. It was
caused by not overriding ScriptableObject.getIds in
NativeRegExpCtor.


git-svn-id: svn://10.0.0.236/trunk@95995 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-29 14:07:49 +00:00
beard%netscape.com
fb8e5a57b8 Added mozilla/js/rhino/src/org/mozilla/javascript/BaseFunction.java source file.
git-svn-id: svn://10.0.0.236/trunk@95993 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-29 13:48:46 +00:00
pschwartau%netscape.com
58cefa9c6b Minor whitespace fix.
git-svn-id: svn://10.0.0.236/trunk@95979 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-28 22:47:14 +00:00
pschwartau%netscape.com
9b1446bf4e Initial add.
git-svn-id: svn://10.0.0.236/trunk@95978 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-28 22:46:31 +00:00