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

4398 Коммитов

Автор SHA1 Сообщение Дата
timeless%mac.com 3d26b5e6ce Bug 154737 String(NaN) crashes JS Engine if JS_THREADSAFE is set
r=dbradley sr=brendan
2002-07-03 02:14:51 +00:00
seawood%netscape.com 8f6f1756ce Add CPP_THROW_NEW macro to the build system. This macro should be used when defining a local |operator new| function. It will be set to an empty throw function by default on all platforms except mac CW builds. This will allow us to not crash on systems that expect |operator new| to throw an exception by default and will suppress compiler warnings about how |operator new| should throw an exception instead of returning NULL.
Bug 149032 r=timeless sr=scc
2002-07-02 20:25:30 +00:00
rogerl%netscape.com 6ebd2105e5 Bug #154338, r=khanson,sr=jag. Misuse of string length field, when string
was dependent, extracted bad value for subsequent memory request.
2002-07-02 18:14:01 +00:00
pschwartau%netscape.com 054d1f4723 Adding new section authored by martin.honnen@t-online.de from bug 150859. 2002-07-02 01:24:34 +00:00
rogerl%netscape.com 355e24f593 Fixed matching of un-matched paren contents (e.g. /(a)\1/("x") ). 2002-06-28 23:04:55 +00:00
pschwartau%netscape.com 36bbd1ba30 Correcting grammar in comment. 2002-06-26 19:16:53 +00:00
pschwartau%netscape.com b237aabe74 Initial add. Regression test for bug 154338. 2002-06-26 19:04:00 +00:00
jst%netscape.com e694c1308f Fixing bug 129622. Make comparing an XPConnect wrapped native object to a number (<, >, ==, ...) in JS always return falase. r=dbradley@netscape.com, sr=jband@netscape.com 2002-06-25 22:14:58 +00:00
timeless%mac.com 8e11200b25 Bug 125411 [NuBus] Mac installer crashes with a type 12 error (SleepQInstall)
r=sfraser sr=beard
thanks to tim@maroney.org (see bug 138156)
2002-06-25 19:39:08 +00:00
pschwartau%netscape.com caebe93d57 Adjusting FAST constant upward again, so that test can pass in Rhino. 100 ms seems like a reasonable value. 2002-06-24 22:14:48 +00:00
khanson%netscape.com 424d7ac75c patch 88484 for bug 14044. checks for out of memory conditon in jsdtoa.c. sr=brendan, r=khanson 2002-06-24 06:14:02 +00:00
rogerl%netscape.com 9508cae65d Fixed whitespace testing. Fixed bug 122167 - $nn handling in replace. 2002-06-22 19:38:02 +00:00
rogerl%netscape.com 486171d5d2 Bug #112626 - setting RegExp static field 'input', making sure the paren
capture substring contents aren't gc'd. r=rginda, sr=brendan.
2002-06-21 18:38:45 +00:00
rogerl%netscape.com 27af23800b Fixing bug 153223; - 'flat' input may be null. 'isWhiteSpace' does not
return true for non-break spaces, use 'isSpaceChar' instead. Bytes are
signed so needed to extract char values more carefully.
2002-06-21 18:19:25 +00:00
pschwartau%netscape.com 166064cd6f Removing 6 skips. All pass now that the new Rhino RegExp engine has been checked in. 2002-06-20 22:31:47 +00:00
pschwartau%netscape.com 5341aaf026 Adjusting FAST constant upward so that test can pass in Rhino - 2002-06-20 20:53:10 +00:00
rginda%netscape.com b6b105c441 fix build bustage, NS_IF_RELEASE the raw pointer, not the COM pointer. 2002-06-19 22:40:19 +00:00
rogerl%netscape.com 8d4b102f83 New RegExp engine implementation. 2002-06-19 21:57:57 +00:00
rginda%netscape.com f239119376 Bug 151803, "Debugger is leaking JSDValues", r=peterv, sr=jst
Stop caching jsdIValues, it doesn't seem to be worth the lookup cost.  This has the side effect of plugging the leak, as described in the bug.
also...
* Convert a few raw pointers to nsCOMPtrs
* Fix a bug where removing the last filter did not null out the list head,
causing a crash the next time filters were used.
* Track live jsdStackFrames, so we can invalidate them all when execution
continues.  Without this, only the top frame is properly invalidated, and any
other frame accessed after a continue will do Bad Things.
* Add some debugging prints to GetInitAtService, which seems to be failing at
random times.
2002-06-19 21:56:23 +00:00
pschwartau%netscape.com 5b796ea735 Correcting Section 1 to test execution as well as compilation of function. 2002-06-19 00:23:43 +00:00
pschwartau%netscape.com 6e555f8ca4 Adding extra comments - 2002-06-19 00:13:04 +00:00
pschwartau%netscape.com 1784694c25 Initial add. Regression test for bug 146596. 2002-06-19 00:02:29 +00:00
nboyd%atg.com 33086d8fc5 Patch from morten@nvg.org :
I keep getting syntax errors with no line numbers as well.

That happens when I use Context.compileReader(..) to compile the script. The
DefaultErrorReporter will throw an exception with only the message and not the
line it happened on.

It is of course easy to workaround using your own error reporter, but I've
attached a patch to add on the line and source name so the DefaultErrorReporter
gives the similar output as EcmaError if that is wanted.
2002-06-17 00:49:47 +00:00
nboyd%atg.com a9bd55a1ce Update last qualified release statement. 2002-06-16 23:51:15 +00:00
dougt%netscape.com 252ea143d4 Fixes 48888 - xpcom flat file backend. r=dp@netscape.com sr=waterson@netscape.com 2002-06-14 21:33:05 +00:00
igor%mir2.org fa1b6e8b1b Added get/setJavaPrimitiveWrap to WrapFactory to get/set if instances of String, Number should be wrapped or not. 2002-06-12 19:11:50 +00:00
brendan%mozilla.org e017f61f6a Back out last change pending debug build (see crash bug 151066). 2002-06-12 08:31:43 +00:00
brendan%mozilla.org 2718cddb25 Report uncaught errors-as-exceptions from outermost JS_Compile*Function* API calls, just as for JS_Compile*Script* (150584, r=rginda, sr=jst). 2002-06-12 08:04:28 +00:00
igor%mir2.org 09a13f7ec3 Removal of unused code for explicit JSObject support:
> Norris Boyd wrote:
>
> Igor Bukaniv wrote:
> >
> > I am curios, why there is a need to have a special JSObject support in Rhino? Was it used for anything? The implementation in the ICEbrowser does not use it as in rare cases where conversion from JSObject to/from JS type may be needed (like calling JSObject.getWindow from a script), it seems that WrapHandler (or similar modifications to pre Rhino 1.5R2 sources) and Wrapper are enough to cover all the cases.
> Yes, we should probably just remove the JSObject code. We added it early on when Rhino was first written and we thought we might need JSObject compatibility with the JS + Java implementation in Navigator 4.x. That's not important now, so we should just remove this code (which likely doesn't work at this point anyway).
2002-06-12 05:32:35 +00:00
brendan%mozilla.org 106a6b8172 For the file input case, roll our own fgets replacement to handle NULs in files (148800, r=rogerl, sr=shaver). 2002-06-11 21:32:54 +00:00
brendan%mozilla.org 5840ea523a Drop non-ECMA f.a-for-arg/var-a-in-active-f support (137000, r=khanson, sr=shaver). 2002-06-11 20:43:50 +00:00
nboyd%atg.com 0e81293d62 Add to log of changes. 2002-06-10 17:44:44 +00:00
nboyd%atg.com f597bef5b2 Add new API class WrapFactory. 2002-06-10 14:28:37 +00:00
nboyd%atg.com 79cf50094d Update javadoc. 2002-06-10 14:27:43 +00:00
nboyd%atg.com 77686394b4 Add PrimitiveWrapHandler example. 2002-06-10 14:23:32 +00:00
nboyd%atg.com cdfc8a39a9 Add example of the use of a WrapFactory. 2002-06-10 14:19:09 +00:00
nboyd%atg.com bc8e896198 Fix javadoc. 2002-06-10 14:09:26 +00:00
igor%mir2.org 8e3b79791f Deprecating NativeJavaObject.wrap and using Context.getWrapFactory().wrap() instead. 2002-06-09 15:58:15 +00:00
igor%mir2.org e91fcea61e More comments 2002-06-09 15:57:03 +00:00
igor%mir2.org a8942006ea Documentation: points to watch when upgrading to WrapFactory 2002-06-09 15:56:12 +00:00
igor%mir2.org 44bf267c33 Fixing broken logic in emulating custom WrapFactory via deprecated WrapHandler:
the code should not call setWrapFactory with null argument, but use new WrapFactory to restore default behaviour
2002-06-09 15:54:30 +00:00
igor%mir2.org f5b045f5e5 Introducing the WrapFactory class that should be used in place of the deprecated WrapHandler interface. 2002-06-09 09:23:00 +00:00
mcafee%netscape.com 15974838f5 Splitting liveconnect off from the java module, new module is called liveconnect, similar to what was done for xpconnect (145347). r=blythe, sr=alecf, a=asa 2002-06-08 06:59:53 +00:00
pschwartau%netscape.com 023788708d Adding new sections authored by john@statesoftware.com from bug 150032. 2002-06-08 04:26:18 +00:00
alecf%netscape.com f0263ddf07 fix for bug 101761 - REQUIRES update - remove all REQUIRES that are no longer necessary.. r=cls, a=asa (build-only changes) 2002-06-06 20:28:14 +00:00
nboyd%atg.com 3e7f7632a9 Fix for bug 149285: Complier does not report the correct line number on
SyntaxError:Invalid assignment left-hand side.
2002-06-06 15:01:57 +00:00
igor%mir2.org 27af2c5e8a Replacing check for unescaped characters in encode/decode from searching in a string to doing switch. It provides a noticeable speedup during encoding/decoding of long strings where almost all characters should be encoded. 2002-06-05 20:40:57 +00:00
brendan%mozilla.org d613f5a321 Ensure a live keyHash *after* multiplying by the irrational (146907, r=dbaron, sr=shaver). 2002-06-05 00:47:38 +00:00
pschwartau%netscape.com 9c8befbfa3 Cosmetic whitespace cleanup. 2002-06-04 19:51:59 +00:00
rogerl%netscape.com b42c0eab50 Corrected tests to match ECMA - unmatched paren contents need to have the
value 'undefined' rather than an empty string.
2002-06-04 18:51:05 +00:00