Commit Graph

4295 Commits

Author SHA1 Message Date
jband%netscape.com
7a83c28af1 add regression test for bug 125430. NOT PART OF THE BUILD 2002-02-14 06:01:54 +00:00
nboyd%atg.com
2543003c2a Add skips for new tests. 2002-02-14 02:05:38 +00:00
dbradley%netscape.com
41da93a53b Bug 124251 - Fix for some DOMStrings leaking when using -mail. r=dbaron, sr=jst 2002-02-14 00:12:44 +00:00
nboyd%atg.com
ef0947a309 Fix build problem in batik:
[javac] Compiling 1427 source files to /data/gump/xml-batik/classes
 [javac] /data/gump/xml-batik/sources/org/apache/batik/script/rhino/EventTargetWrapper.java:81:
coerceType(java.lang.Class,java.lang.Object,boolean)
in org.mozilla.javascript.NativeJavaObject cannot be applied to
(java.lang.Class,java.lang.Object)
2002-02-13 03:07:31 +00:00
igor%mir2.org
3c6a4b6df9 Making final for performance reasons 2002-02-13 01:41:11 +00:00
rogerl%netscape.com
3cafa8d101 Fixing bug #103351 - using undefined as RegExp value for String.replace.
r=khanson, sr=brendan
2002-02-12 19:12:42 +00:00
ccarlen%netscape.com
0d871a1552 Bug 115334 - Removing .mcp files which are obsolete after XML conversion. r=jj/sr=sfraser 2002-02-12 15:41:41 +00:00
nboyd%atg.com
9cdc547eaa Add new Context method "toType" to convert to a specified Java type 2002-02-12 14:30:27 +00:00
nboyd%atg.com
797571ad23 Fix 124900 2002-02-12 14:29:30 +00:00
brendan%mozilla.org
1e4bb807d7 Hack special frame flags into fp when compiling under JS_Evaluate*InStackFrame, so useless expressions don't get optimized away (92087, r=rginda, sr=jband). 2002-02-12 07:44:48 +00:00
pschwartau%netscape.com
2ee1c98e70 Initial add. Testing functions with duplicate formal parameter names. 2002-02-12 01:35:05 +00:00
pschwartau%netscape.com
1ba9a7f2b0 Added two new cases to the test. 2002-02-11 23:02:32 +00:00
pschwartau%netscape.com
4121f4550e Improving readability of summary. 2002-02-11 22:04:16 +00:00
pschwartau%netscape.com
464d31511c Fixing a typo. 2002-02-11 20:13:59 +00:00
pschwartau%netscape.com
480fe35fe1 Initial add. Testing functions with duplicate formal parameter names. 2002-02-11 19:39:12 +00:00
igor%mir2.org
b20f228b29 cosmetics: end-of-line whitespace removal 2002-02-11 01:33:23 +00:00
igor%mir2.org
142bcdb900 tabs -> spaces 2002-02-11 00:02:14 +00:00
igor%mir2.org
dd9357bec7 Avoid unnecessary calls to Context.getContext() by passing Context directly as an argument 2002-02-10 21:10:35 +00:00
igor%mir2.org
582b069550 Always use try/finally to wrap Context.exit 2002-02-10 21:09:42 +00:00
brendan%mozilla.org
3375f6f6f0 Add exception object stack property, string valued; clean up NULL/VOID mixup, missing OOM test, etc. (123177, r=rginda, sr=shaver). 2002-02-09 06:28:58 +00:00
pschwartau%netscape.com
8a7c41db48 Added five new cases to test number values between uint32 upper-bound and long upper-bound. 2002-02-09 00:18:12 +00:00
brendan%mozilla.org
fa54cd9d8a Remove bad old regexp object locking across huge, deadlock-prone, so-not-critical sections (123930, r=rogerl, sr=jband&shaver). 2002-02-09 00:14:31 +00:00
brendan%mozilla.org
a219a25636 Fix recently-uncovered ECMA violation: lastIndex must use double storage (124339, r=rogerl, sr=shaver). 2002-02-08 23:59:49 +00:00
pschwartau%netscape.com
94b0eb9c73 Improving readability. 2002-02-08 23:22:59 +00:00
pschwartau%netscape.com
64d729ccb2 Improving readability. 2002-02-08 21:42:55 +00:00
brendan%mozilla.org
a22a44116b Make regexp.lastIndex threadsafe by multiplexing it by thread-id in each r.e. (76717, r=rogerl, sr=shaver). 2002-02-08 02:46:03 +00:00
brendan%mozilla.org
a911b05d03 Avoid all gc <> obj-lock deadlocks by letting the gc run lock-free, safe since all requests are suspended or ended when the gc runs (114712, r=shaver, sr=jband). 2002-02-08 01:55:30 +00:00
nboyd%atg.com
7eff00208f * Avoid creating a ClassNameHelper when turning caching off.
* When turning debug generation on, don't change opt level from -1 to 0.
2002-02-07 17:54:57 +00:00
rginda%netscape.com
7fccaa5b34 bug 121039, "Need a way to unwrap jsdIValues", r=jband, sr=jst
adds jsdIValue::getWrappedValue() and jsdIService::wrapValue() methods to provid
e js scripts a way to convert between jsdIValues and "real" js values.
Also includes fix to not call breakpoint hook while paused, and changes jsdIFilt
er::glob attribute to jsdIFilter::globalObject, to match jsdIContext::globalObject
2002-02-07 00:59:55 +00:00
brendan%mozilla.org
2edcffaaed Quick followup to last checkin -- warning fixes (d'oh!) 2002-02-06 07:56:29 +00:00
brendan%mozilla.org
2653cdfd3a Fix call and new expression parsenode beginning line number, where the arglist is on another line from the function or constructor, to avoid a bogus assertion in UPDATE_LINENO_NOTES, which is now replaced by better comments and an avoided gratuitous store to cg->currentLine (123371, r=rginda, sr=shaver). 2002-02-06 07:39:20 +00:00
brendan%mozilla.org
2c41247d14 Fix failure to check for JS_InitClass failure, reported by Eric Brueggemann <eric_brueggemann@yahoo.com>, r=shaver, sr=mozbot. 2002-02-06 07:01:37 +00:00
nboyd%atg.com
d7f0af7c79 Have ClassNameHelper object be allocated lazily 2002-02-05 13:47:16 +00:00
nboyd%atg.com
dc8951753b Don't hold a static reference to a ClassLoader that will prevent JavaAdapter classes
from being unloaded.
2002-02-05 13:37:50 +00:00
jband%netscape.com
dcbd4a1a96 Add better support to xpconnect for converting between variants and arrays. bug 120881. r=dbradley sr=vidur. Trivial fix for case where we were hitting an assert at xpcom shutdown. bug 121536. r=dbradley rs=vidur. 2002-02-05 06:45:08 +00:00
jst%netscape.com
cb926125b8 Fixing bug 116834. Making element.innerHTML='...<script>...</script>...' not execute the script, this makes mozilla compatible with IE wrt innerHTML and execution of scripts. r=bzbarsky@mit.edu, sr=rpotts@netscape.com 2002-02-05 05:53:56 +00:00
pschwartau%netscape.com
57f17cedc4 Initial add. Regression test for bug 123437. 2002-02-05 01:44:52 +00:00
nboyd%atg.com
dbc9ade56d Clean up formatting. 2002-02-04 18:58:03 +00:00
nboyd%atg.com
80650f2d25 Change version to 1.5R4pre. 2002-02-04 15:26:31 +00:00
jband%netscape.com
f0115acfab unbust XPCONNECT_STANDALONE build. No change to default build. bug 121438. rs=jband. 2002-02-03 20:05:22 +00:00
pschwartau%netscape.com
687f3f451e Initial add. Regression test for bug 123002. 2002-02-02 02:03:43 +00:00
seawood%netscape.com
8f2816f49f Do not place the .res file inthe srcdir 2002-02-01 04:50:32 +00:00
igor%mir2.org
febdace285 Use heapsort instead of qsort for Array.sort to follow JS for reasons described in http://bugzilla.mozilla.org/show_bug.cgi?id=99120 2002-01-31 10:08:17 +00:00
brendan%mozilla.org
fdf6f6bfee Fix for(i in null) and for(i in undefined) to error per ECMA, rather than iterating zero times (121744, r=khanson, sr=shaver). 2002-01-31 07:30:05 +00:00
rginda%netscape.com
905acd6402 changing a string constant, comenting out a DEBUG_rginda
use more descriptive url when compiling prettyprint changes
2002-01-31 00:37:28 +00:00
pschwartau%netscape.com
5c88e87eeb Initial add. Regression test for bug 121744. 2002-01-30 21:57:28 +00:00
sfraser%netscape.com
d133d4956f Making the nsModuleComponentInfo data const; bug 74803. r=dp, sr=waterson 2002-01-30 21:14:20 +00:00
rginda%netscape.com
2ab45af255 quiet bogus "potentially unused" warnings, see bug 121178, sr=brendan 2002-01-30 08:37:57 +00:00
igor%mir2.org
03c7c86042 Stricter enter/exit: enter performs sanity checks on supplied Context and the exit requires previous enter. 2002-01-29 22:58:22 +00:00
dougt%netscape.com
c50ca402ad 1. Converts callers of nsIComponentManagerObsolete to use
nsIComponentRegistrar.

2. Converts callers of nsComponentManager::AutoRegister to use
nsIComponentRegistrar's autoRegistrar method.

3. Add nsIComponentRegistrar implmentation to nsComponentManagerImpl.

4. Rearrange nsComponentManager.cpp so that related methods are in the same
place.

5. Added a C-style function NS_GetComponentRegistrar so that getting the
registrar is easier in some places.

6. Added a nsISimpleEnumerator interface on PLDHashTableEnumeratorImpl.  in
this way, the same base class can support both old style and new style
enumerations.

7. Fixed a nasty bug where unregistring factories will leave the contract id
hash with a dangling pointer.  Now, when unregister is called we search the
contract id hash for entries which have the given doomned cid and remove them.


Bug 115853.  r=dp@netscape.com, sr=rpotts@netscape.com
2002-01-29 21:22:13 +00:00
igor%mir2.org
7ca511bab3 Few Native* classes are made package private and final. They had been public only for implementation reasons. 2002-01-29 18:40:13 +00:00
igor%mir2.org
86947ddec0 Use ScriptRuntime.toString(double) to convert double to string. Easier to follow version of getElem/setElem 2002-01-29 09:44:24 +00:00
rginda%netscape.com
9626570b63 bug 121318, sr=brendan,r=jst, "Venkman should disable the target window when stopped at a breakpoint".
implement the jsdIContext interface.
create only one jsdValue wrapper per unique jsval.
add executionContext property to jsdIStackFrame.
add enumerateContexts to jsdIDebuggerService.
add jsdIContextEnumerator interface.
2002-01-29 08:32:23 +00:00
rginda%netscape.com
0e7a4d620e fixing os/2 bustage, false vs PR_FALSE mixup 2002-01-29 07:20:59 +00:00
rginda%netscape.com
33fccb8187 bug 121178, r=jst,sr=brendan, "jsdIStackFrame::eval signature needs to be changed"
return exception from jsdService::Eval if one occurs.
2002-01-29 06:15:58 +00:00
rginda%netscape.com
ecdf07d4a4 bug 121192, sr=brendan,r=jst, "Add proper errorHook and debugHook to jsdIDebuggerService"
adds jsdIDebugHook interface, change the meaning of jsdIErrorHook.
error hook is called when an error occurs, and is given information about the error report.
debug hook is called when/if the error hook returns false, and is given information about the ececution state.
2002-01-29 05:56:02 +00:00
nboyd%atg.com
044c888b5f Update implementation version. 2002-01-28 00:52:12 +00:00
brendan%mozilla.org
1d1d042dce Checking in rogerl's fix for double-reports of compile-time errors (120197, r=brendan, sr=shaver). 2002-01-27 04:42:37 +00:00
nboyd%atg.com
a2254d8379 Clean up formatting. 2002-01-26 20:07:49 +00:00
nboyd%atg.com
eec81fb952 Fix bug 121790 2002-01-26 19:15:06 +00:00
nboyd%atg.com
cf94c28b89 Fix formatting 2002-01-26 19:13:22 +00:00
pschwartau%netscape.com
31fad3dda2 Improving readablity. 2002-01-25 23:52:24 +00:00
pschwartau%netscape.com
97e08a35b7 Improving readability. 2002-01-25 20:37:37 +00:00
pschwartau%netscape.com
29979faedc Improving readability. 2002-01-25 20:02:31 +00:00
pschwartau%netscape.com
884be956c1 Skip another SpiderMonkey test generating infinite recursion and catching it as an error. 2002-01-25 03:39:21 +00:00
seawood%netscape.com
39ba085fc5 Fix "static" build support for win32 gmake builds.
Bug #58981 r=bryner
2002-01-25 03:20:51 +00:00
pschwartau%netscape.com
e20c536dcb Added three more cases to the test. 2002-01-25 03:17:23 +00:00
pschwartau%netscape.com
26aea873ac Initial add. Regression test for bug 121658. 2002-01-25 03:04:18 +00:00
brendan%mozilla.org
b8f48f2f9f Make 'too much recursion' errors be exceptions #if JS_HASH_ERROR_EXCEPTIONS (121658, r=rogerl, sr=shaver). 2002-01-25 00:49:52 +00:00
brendan%mozilla.org
f303a64843 Checking in patch from Daniel Bratell <bratell@lysator.liu.se>, r=khanson, sr=me. 2002-01-25 00:47:11 +00:00
nboyd%atg.com
d7e41aff99 UPdate implementation version 2002-01-24 20:17:05 +00:00
nboyd%atg.com
f79730a30a Fix out-of-date javadoc. 2002-01-24 19:57:52 +00:00
nboyd%atg.com
c24a699dd8 Fix the following problem:
Thanks!

As promised, I tried the debugger this afternoon and I had a problem with the '-f' option.
  We use -f to run a standard "startup" script before executing the "main" script.  For
example, we run the Rhino shell with the options "-f startup.js main.js".

When running the debugger's shell with the same options the debugger exits after the
startup.js completes; i.e., I can single step starting from startup.js but the debugger
exits at the end of startup.js without letting me single step into main.js.  This worked
fine in the 1.5R2 release of Rhino and the debugger.

I have not had a chance to look into the problem closely, but a cursory look at the code
suggests (to me) that the problem can be in either the debugger or the shell (since the
debugger basically runs the shell after creating the right "hooks".)  Of course, it could
also be a problem with my embedding.

So ... my question is, has anyone tried single stepping when the options to the debugger
include a '-f' option.  If so, I'll continue to look for a problem in my embedding.

Any suggestions would be appreciated.

Thanks,

dave
2002-01-24 19:57:01 +00:00
rogerl%netscape.com
d8f1df22cb Fix bug #104375. Bug in String.replace() with $n where n > # parens.
r=khanson, sr=brendan.
2002-01-24 19:27:21 +00:00
nboyd%atg.com
8ac7ce6e06 Add new skip. 2002-01-24 14:10:35 +00:00
rginda%netscape.com
675a123ada bug 119865, crash exiting venkman, r=peterv, sr=brendan
use nsCOMPtr to avoid releasing a final reference via jsdScript::Invalidate()
2002-01-24 13:17:04 +00:00
jst%netscape.com
74b270f1db Fixing bug 120899. Changing the NS_WARN_IF_FALSE() macro so that it can't be mis-used in optimized builds. This change makes the macro not usable in expressions that are supposed to be evaluated in release code since the macro now expands to nothing in non-debug builds. Also eliminate NS_VALIDATE which is equally mis-usable. r=dbaron@fas.harvard.edu, sr=brendan@mozilla.org 2002-01-24 09:20:51 +00:00
jst%netscape.com
755aed19ba Fixing bug 120901. Eliminating unnecessary QI call in XPCWrappedNative::GetNative(). r=dbradley@netscape.com, sr=jband@netscape.com 2002-01-24 06:03:25 +00:00
jst%netscape.com
cc17fd30b7 Fixing bug 120718. Making XPCReadableJSStringWrapper not allocate non-shared buffer handles, this caused a malloc to happen for every XPCReadableJSStringWrapper that was accessed in mozilla, ~400 allocations at startup. r=dbaron@fas.harvard.edu sr=jaggernaut@netscape.com. 2002-01-24 05:59:41 +00:00
bratell%lysator.liu.se
af5d807ca1 Bug 120990 - make conversion from integer to string faster by not using sprintf. r=khanson, sr=brendan 2002-01-24 05:24:39 +00:00
pschwartau%netscape.com
47f756e940 Correcting typo. 2002-01-24 02:31:51 +00:00
pschwartau%netscape.com
643394a31d Initial add. Regression test for bug 96526. 2002-01-24 02:25:05 +00:00
pschwartau%netscape.com
b11d6ffb0e Initial add; testing Error.prototype.toString() 2002-01-23 02:24:32 +00:00
brendan%mozilla.org
dcbcdb0799 Inline-eliminate js_Emit{Break,Continue} and move SRC_CONTINUE generation to the right place (120571, r=rogerl, sr=jst&jband, a=asa). 2002-01-22 22:06:10 +00:00
nboyd%atg.com
b0c8c14266 Fix bug:
Norris,

I realize this is probably a nuisance, but the following problem causes our
regression test suite to fail:

    js> foo = new Error("bar")
    undefined: bar
    js> foo.name Error
    js> foo.toString()
    undefined: bar

Our test suite expects:

    js> foo = new Error("bar")
    Error: bar
    js> foo.name Error
    js> foo.toString()
    Error: bar

I have not yet tried the debugger with the RC2 release, but I expect to get
to that later today.

I hope I'm not to late to influence the 1.5R3 release.

Thanks,

dave
2002-01-19 17:43:26 +00:00
pschwartau%netscape.com
4e5c511acb Made sections 13 and 14 more precise. 2002-01-19 03:34:50 +00:00
sfraser%netscape.com
0428dc97e3 Fix for bug 120451 -- clean up the sleep Q entry on quit, so that we don't leave a bad entry there and hose the machine some time later. r=sdagley, sr=beard, a=blizzard 2002-01-18 21:40:13 +00:00
pschwartau%netscape.com
eefea05476 Added two more cases to test. 2002-01-18 07:07:13 +00:00
nboyd%atg.com
46f0076965 Skip changed test. 2002-01-17 13:50:47 +00:00
beard%netscape.com
5dfeb6c1a2 Configuration to build on Mac OS X 10.1. 2002-01-17 06:39:04 +00:00
jst%netscape.com
50295b2702 Fixing part of bug 118933. Speeding up the global resolve hook in the DOM JS helpers by eliminating the use of nsHashtable and nsStringKey in favor of pldhash. Adding global HashString(const nsA[C]String&) functions that calculate a hash code from a nsA[C]String, code by dbaron@fas.harward.edu. Also checking in brendan@mozilla.org's fix for a type error in the jsdhash/pldhash API found while working on this. sr=brendan@mozilla.org, r=peterv@netscape.com 2002-01-17 04:08:14 +00:00
dbaron%fas.harvard.edu
362b589445 Missing part of fix for bug 117153, fixing threadsafety problems with shared empty buffer handles. b=120300 r=jag sr=alecf a=blizzard 2002-01-17 00:07:15 +00:00
nboyd%atg.com
83fc380ff9 Add link to article with Rhino. 2002-01-16 16:07:12 +00:00
rogerl%netscape.com
be480d0e2d Fixed RegExp bug #72964, r=khanson, sr=brendan 2002-01-16 06:47:06 +00:00
rogerl%netscape.com
08c2912aac Fixed RegExp bugs #105972 & #87231. r=khanson, sr=brendan. 2002-01-16 06:06:34 +00:00
brendan%mozilla.org
71be933776 Simplify #ifdefs in JS_Assert to default to fprintf (45673, debug only, r=rogerl, sr=me, patch from jband). 2002-01-16 05:17:58 +00:00
brendan%mozilla.org
958c05b6cc Checking in patch for rob1@rekl.yi.org, r=khanson, sr=brendan (but neither file is part of the build). 2002-01-16 05:12:53 +00:00
seawood%netscape.com
e56e20b1dc Use dynamic library & xpidl_module names from nmake build for win32 gmake builds for compatibility.
bug #58981 sr=jag
2002-01-16 05:10:09 +00:00
brendan%mozilla.org
007db84d18 Checking in patch for Steven Cole <scole@planetweb.com> to fix js_DoubleToECMAInt32 (120083, r=khanson, sr=brendan). 2002-01-16 00:17:16 +00:00
pschwartau%netscape.com
4ca475a6d9 Adding toInt32 tests for numbers between -2^31 and -2^32 with fractional parts. See bug 120083. 2002-01-16 00:16:48 +00:00
pschwartau%netscape.com
2f7c759f41 Adding toInt32 tests for numbers greater than 2^31 with fractional parts. See bug 120083. 2002-01-15 23:27:12 +00:00
dbradley%netscape.com
81bbc17978 Bug 111068 - SyncXPCContextLists uses of XPCContext::Mark is not thread safe. patch by jband, r=dbradley, sr=jst 2002-01-15 22:49:46 +00:00
nboyd%atg.com
14c34495ad Update for 1.5R3. 2002-01-15 17:35:09 +00:00
pschwartau%netscape.com
8d201875cc Correcting a typo in comments- 2002-01-15 01:07:28 +00:00
pschwartau%netscape.com
10fa64eeea Initial add. Regression test for bug 119909. 2002-01-15 00:51:12 +00:00
rginda%netscape.com
e4742bb5be bug 119938, nebiros bustage, r=dbaron
remove useless casts
2002-01-14 21:59:34 +00:00
jband%netscape.com
66c9536fcc fix bug 119387. Add a non-allocating IID version of the frequently used getIIDForParam method. r=dbradley sr=jst 2002-01-14 20:02:14 +00:00
bryner%netscape.com
cfc984cc6c Bug 119743 - autocomplete doesn't work in gcc 2.96 -O2 builds. r=hixie, sr=brendan. 2002-01-14 06:45:21 +00:00
nboyd%atg.com
1b30f2ebf8 Exclude Unicode-2 incompatible tests 2002-01-14 01:21:07 +00:00
beard%netscape.com
3420ef9253 Fix mac bustage: jschar* and PRUnichar* aren't compatible. 2002-01-12 01:40:15 +00:00
rginda%netscape.com
73855845b3 bug 115695, rs=brendan, venkman only
netive changes relating to pretty print support, includes...
* remove jsdIPC interface, replaced with ulong offsets from PC 0.
* add |pcmap| parameter to select between sourcetext/prettyprint linemaps (pcToLine, lineToPc, and isLineExecutable.)
* add |functionSource| property to jsdIScript.
* add |tag| to jsdIScript.
* fixed potential jsdIScript leaks.
2002-01-12 00:56:35 +00:00
pschwartau%netscape.com
d24a0fe0ca Updating JS_GetImplementationVersion() to date of latest JS release (67111). 2002-01-11 23:18:39 +00:00
pschwartau%netscape.com
db92a9fe93 Correcting a mistaken comment. 2002-01-11 01:34:07 +00:00
pschwartau%netscape.com
2d502daf70 Initial add. Regression test for bug 103602. 2002-01-11 01:23:40 +00:00
brendan%mozilla.org
28d27d47f8 Remove Call constructor (118732) and fix old bug in Function where it failed to convert args to strings (118849; both r=timeless, sr=shaver). 2002-01-10 08:51:01 +00:00
seawood%netscape.com
0d320d137e Link jsd into application in a "static" build.
Thanks to Robert Ginda <rginda@netscape.com> for the patch.
Bug #118784 r=cls
2002-01-10 08:47:01 +00:00
pschwartau%netscape.com
b1655936f8 Improving comments. 2002-01-09 19:53:02 +00:00
bryner%netscape.com
7bdffe5186 Bug 117276 - regression on gcc 2.95.x debug builds. Since we don't
understand exactly what the problem is here, and it does not seem to
happen on gcc 2.96, and 2.95 doesn't have the alias optimizations that
called for the new code in the first place, just make 2.95 use the old
code.  r=timeless, sr=brendan.
2002-01-09 19:23:37 +00:00
nboyd%atg.com
0328c83836 Fix bug 118636: Date format 2002-01-09 15:21:31 +00:00
nboyd%atg.com
d30ebd31a8 Fix bug:
We have found a problem in string.replace() when replacing a regular
expression with a dollar sign. The following code works right when the
replacement string does not contain "$":

$ java -jar js.jar
js> var re = new RegExp("%%%");
js> var price = "%%% 1.99";
js> price.replace(re, "USD");
USD 1.99
js> price.replace(re, "$");
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
         at
org.mozilla.javascript.regexp.ReplaceData.interpretDollar(RegExpImpl.java:40 0)
         at
org.mozilla.javascript.regexp.ReplaceData.findReplen(RegExpImpl.java:502)
         at
org.mozilla.javascript.regexp.RegExpImpl.replace(RegExpImpl.java:116)
         at
org.mozilla.javascript.NativeString.execMethod(NativeString.java:266)
         at org.mozilla.javascript.IdFunction.call(IdFunction.java:78)
         at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1222)
         at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1940)
         at
org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:68)
         at
org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:59)
         at org.mozilla.javascript.Context.evaluateReader(Context.java:773)
         at
org.mozilla.javascript.tools.shell.Main.evaluateReader(Main.java:312)
         at
org.mozilla.javascript.tools.shell.Main.processSource(Main.java:219)
         at org.mozilla.javascript.tools.shell.Main.exec(Main.java:106)
         at org.mozilla.javascript.tools.shell.Main.main(Main.java:68)
2002-01-09 15:20:48 +00:00
pschwartau%netscape.com
3190f7a74b Initial add. Regression test for bug 118849. 2002-01-09 01:09:15 +00:00
nboyd%atg.com
0e0079e943 Fix doc bug. 2002-01-08 20:11:53 +00:00
dbaron%fas.harvard.edu
85a52892dc Don't use C++ comments in C files. 2002-01-08 02:29:11 +00:00
pschwartau%netscape.com
7467a1a611 Modified test to take account of the change in SpiderMonkey date format (bug 118266) 2002-01-08 02:23:26 +00:00
alecf%netscape.com
5965318acb C++ side of fix for bug 100212 - move consumers of nsIFile.URL into nsIIOService. r=dougt, sr=darin 2002-01-08 01:31:25 +00:00
brendan%mozilla.org
8d24cf46e4 Checking in patch written by balleysson@bigfoot.com based on tenthumbs@cybernex.net's sketch, to avoid mallocs in js_strtod (115627, r=khanson, sr=me). 2002-01-07 23:42:25 +00:00
brendan%mozilla.org
56d43516cb Group date and time fields in toString's result so as to work with PR_ParseTimeString (118266, r=khanson, sr=shaver). 2002-01-07 11:09:04 +00:00
rginda%netscape.com
fa27b59d7d bug 117907, patch=joerg.schaible@gmx.de (J�rg Schaible), r=me
add release build option to jsdb.mak
2002-01-04 19:24:14 +00:00
nboyd%atg.com
302f3a0ca7 Update implemenation version date. 2002-01-04 14:04:42 +00:00
nboyd%atg.com
4476a490b1 Fix bug reported by rathje40@yahoo.com
We are converting from spidermonkey to rhino and it appears that the
name property for the constructor function returns "constructor" for
all builtin types.  Spidermonkey would return "Date" or "Array" or
whatever.  Is there a workaround?  This code needs to work with both
interpreters.

Here is an example of the rhino behavior:

js> var i=new Date;
js> i.constructor.name
constructor
js> Date.name
constructor
js> function bob(){}
js> bob.name
bob
js> var i = new Array();
js> i.constructor.name
constructor
js>
2002-01-04 14:04:01 +00:00
nboyd%atg.com
bbb7be562e Remove override that is duplicate of superclass. 2002-01-04 14:02:36 +00:00
nboyd%atg.com
15ce244c1d Print implementation version when starting up interactive mode. 2002-01-04 14:02:02 +00:00
brendan%mozilla.org
2ba4c7d57c Null pointer defense in FUN_CALLER fun_getProperty case (117307, r/sr skipped, trivial). 2002-01-01 21:12:21 +00:00
brendan%mozilla.org
8962b0ec01 Fix old bug introduced by rev 3.2, where this() crashes due to uninitialized obj register (116228, r=timeless, sr=shaver). 2001-12-27 08:47:33 +00:00
timeless%mac.com
61a97fd94a Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting
r='s from many people. sr=jst
2001-12-23 23:23:41 +00:00
igor%mir2.org
30dfb0a96f Use Vector.elementAt instead of Vector.getfor jdk 1.1 complience 2001-12-20 22:05:42 +00:00
igor%mir2.org
d6078a18da Fixes to allow to use jikes to compile and produce less warnings:
1. Replace catch(Exception) by catch(RuntimeException) when only RuntimeException can be throws

2. Make sure that inner classes does not use the same name for parameters as parent scope, see  http://domino.watson.ibm.com/syssftpr/JavaTech/Jikes.nsf/Named/SunQuery8
2001-12-20 21:15:02 +00:00
dougt%netscape.com
3a73c9be8d fixing dumbass error. This could should have returned null if obsoleteManager was null, not the inverse. r=jband@netscape.com 2001-12-20 00:26:28 +00:00
nboyd%atg.com
c348be84db Added comment about bug 115717. 2001-12-19 15:31:56 +00:00
brendan%mozilla.org
de1592438e Don't double-drop a property when strict-warning about duplicate formals (115436, r=khanson, sr=jband). 2001-12-19 02:10:26 +00:00
beard%netscape.com
21b53b29a8 fix for bug #115545. r=sdagley, sr=sfraser 2001-12-19 00:23:05 +00:00
dougt%netscape.com
849d297364 nsIComponentManager API Changes (bug 98553)
a) create a new nsIComponentManager with only four functions on it:
CreateInstance CreateInstanceByContractID GetClassInfo GetClassInfoByContractID.

b) rename the old nsIComponentManager to nsIComponentManagerObsolete.

c) fixes callers which use to access the nsIComponentManager for component
registration functionality.  These callers will temporary use the
nsIComponentManagerObsolete interface.

d) Create a new API NS_GetComponentManager() which mirrors the
NS_GetServiceManager()

e) Perserves the old NS_GetGlobalComponentManager().  Note the cast usage.

r/sr = rpotts@netscape.com  alecf@netscape.com  brendan@mozilla.org
2001-12-19 00:12:41 +00:00
seawood%netscape.com
45bfbf0658 Landing the rest of the win32 gmake changes:
* Adds Makefile.ins to win32 specific dirs
* Adds WINNT ifdefs to Makefile.ins
* Causes NSPR to be compiled with --with-mozilla
* Misc general Makefile.in cleanup

Bug #58981 r=mcafee
2001-12-18 09:14:29 +00:00
pschwartau%netscape.com
3f93033176 Updating bug number reference in test. The original bug has outgrown. 2001-12-18 01:23:15 +00:00
jaggernaut%netscape.com
ee12112b29 Remove timer from REQUIRES, the makefile.win edition 2001-12-16 18:08:20 +00:00
pavlov%netscape.com
15273ea50a bug 78611. New XP threadsafe timer implementation. r=dougt sr=brendan 2001-12-16 06:13:17 +00:00
seawood%netscape.com
51fa852613 Make OS/2 use the win32 build changes and finish LIB_PREFIX substitution.
Thanks to Javier Pedemonte (pedemont@us.ibm.com) for the patch.
Bug #58981 r=cls
2001-12-14 23:49:04 +00:00
nboyd%atg.com
8114e3ffba Fix formatting. 2001-12-13 15:27:16 +00:00
sfraser%netscape.com
7ff0b7c27c Fix bug 114915 -- app not starting up in Mac opt builds. Work around a CodeWarrior optimizer bug by bumping down the optimization level for the optimized target. r=brendan, sr=shaver, a=Roto-rooter 2001-12-13 07:11:28 +00:00
brendan%mozilla.org
74151505f6 Long ago, mccabe copied the principals setting code in Function from late to early in the function (should've moved, but no one noticed); last month, I fixed bug 90546 in the original site but not in the copy; this change eliminates the duplication, moving the fix up to the copy's site (90546, r=jst, sr=jband, a=chofmann). 2001-12-13 00:27:20 +00:00
nboyd%atg.com
cd3ab305ae Fix bug 114491: if (true) function f(){}() 2001-12-12 14:16:57 +00:00
brendan%mozilla.org
7b2b1b44ad Fix try/finally and try/guarded-catches/finally hard cases (104077, r=jband, sr=shaver). 2001-12-12 05:00:29 +00:00
brendan%mozilla.org
140631bce2 Checking in rogerl@netscape.com's patch for bug 100199 (r=rginda, sr=me). 2001-12-12 04:27:50 +00:00
nboyd%atg.com
1bd9822564 Fix bug 114493: "3"[5](); 2001-12-11 14:16:13 +00:00
nboyd%atg.com
d120758a27 Fix memory leak of class names--reset every time we get a new ClassLoader. 2001-12-11 14:13:55 +00:00
ccarlen%netscape.com
af646e6f1f Bug 98349 - Convert Mac build to CW7 and XML projects. Removing obsolete .mcp files. r=pink/sr=sfraser 2001-12-11 05:45:45 +00:00
ccarlen%netscape.com
f810f656cc Bug 98349 - Convert Mac build to CW7 and XML projects. Removing obsolete .mcp files. r=pink/sr=sfraser 2001-12-11 05:10:45 +00:00
pschwartau%netscape.com
bb9cd805fe Initial add. Regression test for bug 114493. 2001-12-11 01:59:58 +00:00
pschwartau%netscape.com
c0a324bd7e Initial add. Regression test for bug 114491. 2001-12-11 01:59:22 +00:00
ccarlen%netscape.com
884be5f4c2 Adding new files for conversion to CW7 and XML project files. Bug 98349 r=pink/sr=sfraser. 2001-12-10 21:32:41 +00:00
ccarlen%netscape.com
baca6ece31 Adding new files for conversion to CW7 and XML project files. Bug 98349 r=pink/sr=sfraser. 2001-12-10 20:42:22 +00:00
pschwartau%netscape.com
0e3eb87c82 Adding new cases to test 2001-12-10 00:43:13 +00:00
dbaron%fas.harvard.edu
f7b755c4e0 Prevent XPCReadableJSStringWrapper from having a null buffer handle. b=112496 r=shaver, jag sr=jst 2001-12-08 22:49:05 +00:00
pschwartau%netscape.com
60b99db82a Adding one more case to test 2001-12-08 03:29:52 +00:00
dbradley%netscape.com
944c82b990 Bug104843 - Added requires to makefile 2001-12-07 13:34:48 +00:00
seawood%netscape.com
16e4f2d4d9 Drop optimization level for select files on Irix when compiling with MIPSpro to workaround suspected compiler bug.
Thanks to Nick Blievers <nickb@adacel.com.au> for the patch.
Bug #79562 r=brendan sr=cls
2001-12-07 09:12:16 +00:00
pschwartau%netscape.com
45b92fe8f8 Added three more cases to test 2001-12-07 07:23:57 +00:00
nboyd%atg.com
bbc1ee2679 Updates for Rhino1.5R3. 2001-12-06 14:53:59 +00:00
nboyd%atg.com
e795599799 Update release number, date. 2001-12-06 14:33:44 +00:00
nboyd%atg.com
44b02edcc8 Change version to 1.5R3. 2001-12-06 14:27:26 +00:00
nboyd%atg.com
82fd57b5aa Hello !
I'm the maintainer of JPackage project rhino package (see
jpackage.sourceforge.net). I just found two problems for building it (version
1.52 from cvs):
- the property src.debugger is badly initialised in toolsrc/build.xml. See
patch attached for correction. Moreover, this was a real pain to make offline
building possible. I guess it's a licensing problem that prevents you
including those files in rhino sources ?
- the produced javadoc has an empty (0 sized) package-list file. Have you got
any idea why ?
-- Guillaume Rousse <rousse@ccr.jussieu.fr>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html
2001-12-06 14:26:26 +00:00
rogerl%netscape.com
5586bf8bdc Bugs #100199 & 78156. r=khanson, sr=brendan. Fixing multiline matching and
pathological character class cases in regular expression handling.
2001-12-05 23:58:51 +00:00
pschwartau%netscape.com
eb9c1aae74 not part of default build
bug 111365, JS standalone doesn't build on solaris.
point AS to /usr/ccs/bin/as
2001-12-05 19:32:16 +00:00
pschwartau%netscape.com
c59566e1a8 not part of default build
bug 111365, JS standalone doesn't build on solaris.
point AS to /usr/ccs/bin/as
2001-12-05 00:31:55 +00:00
seawood%netscape.com
c8994a7ac0 Initial landing of win32 support for autoconf builds.
Bug #58981 sr=alecf
2001-12-04 21:17:48 +00:00
pschwartau%netscape.com
922f8539d0 Adding one more case to test. 2001-12-04 00:54:00 +00:00
pschwartau%netscape.com
d06c77d845 Added more cases to test; updated the license at top. 2001-12-01 03:29:24 +00:00
dbaron%fas.harvard.edu
824e7d22ca Make nsSharable[C]String writable by overriding appropriate methods. Ensure that it doesn't store null buffer handle pointer internally, and override get() on nsXPIDL[C]String for backwards-compatibility. Collapse nsSharedBufferHandle and nsFlexBufferHandle into nsSharedBufferHandle which knows its length but can't have a storage start distinct from its data start. Convert string users who were working around broken nsSharableString::Assign back to using it. b=104663, 100751, 74726 r=jag sr=scc 2001-11-28 05:22:57 +00:00
brendan%mozilla.org
25f3ad4fb3 Update all pointers to an arena that moved when it was reallocated (111557, r=shaver, sr=jband). 2001-11-27 21:27:59 +00:00
pschwartau%netscape.com
a216201eba Skipping a new, big test that exceeds Java classfile size limitations 2001-11-27 04:21:28 +00:00
pschwartau%netscape.com
dcf76be5c0 Initial add. Regression test for bug 111557. 2001-11-27 04:13:03 +00:00
timeless%mac.com
51a4520c4a Bugzilla Bug 107823 change nsIFile
to use 'Modified' instead of 'Modification'
r=akkana sr=brendan
2001-11-26 08:05:05 +00:00
nboyd%atg.com
6a01600cc8 JavaAdapter serialization contribution from Kemal Bayram. 2001-11-23 20:40:08 +00:00
nboyd%atg.com
b52f96cd91 Hi, Norris!
In our browser we need to support scripts that use as an identifier name future reserved keywords such as interface. The scripts are rather old and perfectly legal under previous revisions of EcmaScript which does not included the list of almost every Java keyword to the future reserve.

To support this I added an option to query Context.hasFeature for FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER:

    /**
     * if hasFeature(RESERVED_KEYWORD_AS_IDENTIFIER) returns true,
     * treat future reserved keyword (see  Ecma-262, section 7.5.3) as ordinary
     * identifiers but warn about this usage
     */
    public static final int FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER = 3;

The corresponding code in TokenStream checks for it and issues just a warning when this feature is enabled.

I also think that it would be better not to return RESERVED as a token from TokenStream.getToken but report the specific syntax error immediately because it is very unclear from the error message:

js> x.interface = 1
js: "<stdin>", line 1: uncaught JavaScript exception: SyntaxError: missing name after . operator (<stdin>; line 1)
js: x.interface = 1
js: ..........^

what exactly went wrong. I can send a patch later for that.

Regards, Igor
2001-11-23 20:38:50 +00:00
nboyd%atg.com
1ce9a8feb9 Update for new failures. 2001-11-23 01:20:56 +00:00
nboyd%atg.com
4ef25a301c Hi,
I'm working on a project which uses rhino. I wanted to have finer
control over class generation and saving so I've done some patching
and clean up on the current rhino tip.

The biggest change I've made is the replacement of ClassOutput with
ClassRepository that has the single method:

    public boolean storeClass(String className, byte[] classBytes,
                           boolean isTopLevel) throws IOException;

This interface allows any arbitary storage method, such as a
Hashtable/Map. In addition it also allows you to specify whether a
class should be loaded, via returning true or false.  You can still use
ClassOutput as I've coded an internal wrapper.

With this interface it has also been possible to strip out the file
saving code from Codegen and OptClassNameHelper.  The file
saving code is now an inner class FileClassRepository in Context. As
a consequence of this  I've stripped out some methods from ClassNameHelper.
The resulting code is much more cleaner then before hand and everything
still works as per usual.

Other small additions are:
  o  Annonymous functions are now named class$1 instead of class1
  o  get/setClassName added to ClassNameHelper exposed in Context.

My final thoughts are, since all methods in ClassNameHelper except reset()
are now exposed whould n't it be much more "cleaner" to simply to some
how work around to eliminate reset() and provide getClassNameHelper()
via Context?  You could then remove the numerous ClassNameHelper shadow
methods from Context.

Likewise, FileClassRepository could be made a public class very easily
and combined with the above result in a dozen or so less public methods in
Context.

Anyway, the changes can be found on http://www.cins.co.uk/rhino.zip

Hope it is of use to some

Kemal Bayram
2001-11-22 15:48:21 +00:00
brendan%mozilla.org
106186f720 Thanks to scole@planetweb.com (Steven Cole) for fixing date_format to respect PRMJ_FormatTime's return value (102159, r=beard, sr=brendan). 2001-11-21 23:53:54 +00:00
brendan%mozilla.org
3350a394b5 Don't eagerly allocate fatlock freelist chunks; don't preallocate so much, and use a smaller global lock hashtable (109218, r=shaver/sr=jband). 2001-11-21 23:28:52 +00:00
pschwartau%netscape.com
e3560ba177 Removing two tests from the skip list because they have been removed from the repository. 2001-11-21 22:16:19 +00:00
pschwartau%netscape.com
63bbacdb75 Removing test from repository. It contains very large blocks.
But because of the fix to bug 80981, these are no longer large enough
to trigger the internal error and exit code 3 that the test looked for.
2001-11-21 21:59:31 +00:00
pschwartau%netscape.com
f3c83ec62e Skipping another test with a large switch() statement 2001-11-21 21:34:25 +00:00
pschwartau%netscape.com
a929ee24ec Initial add. Regression test for bug 80981. 2001-11-21 21:17:31 +00:00
nboyd%atg.com
46b8e5185c Hi,
I'm working on a project which uses rhino. I wanted to have finer
control over class generation and saving so I've done some patching
and clean up on the current rhino tip.

The biggest change I've made is the replacement of ClassOutput with
ClassRepository that has the single method:

    public boolean storeClass(String className, byte[] classBytes,
                           boolean isTopLevel) throws IOException;

This interface allows any arbitary storage method, such as a
Hashtable/Map. In addition it also allows you to specify whether a
class should be loaded, via returning true or false.  You can still use
ClassOutput as I've coded an internal wrapper.

With this interface it has also been possible to strip out the file
saving code from Codegen and OptClassNameHelper.  The file
saving code is now an inner class FileClassRepository in Context. As
a consequence of this  I've stripped out some methods from ClassNameHelper.
The resulting code is much more cleaner then before hand and everything
still works as per usual.

Other small additions are:
  o  Annonymous functions are now named class$1 instead of class1
  o  get/setClassName added to ClassNameHelper exposed in Context.

My final thoughts are, since all methods in ClassNameHelper except reset()
are now exposed whould n't it be much more "cleaner" to simply to some
how work around to eliminate reset() and provide getClassNameHelper()
via Context?  You could then remove the numerous ClassNameHelper shadow
methods from Context.

Likewise, FileClassRepository could be made a public class very easily
and combined with the above result in a dozen or so less public methods in
Context.

Anyway, the changes can be found on http://www.cins.co.uk/rhino.zip

Hope it is of use to some

Kemal Bayram <rhino@cins.co.uk>
2001-11-21 17:12:57 +00:00
seawood%netscape.com
7733357d51 Rename 'install' build phase to 'libs'.
Bug #56601 r=pavlov
2001-11-21 09:49:41 +00:00
brendan%mozilla.org
9b46da979c Thanks to scole@planetweb.com, no more un-ECMA error for /* in a /**/ comment (110286, r=khanson, sr=brendan). 2001-11-20 23:35:45 +00:00
brendan%mozilla.org
d2eb2bf046 Better fix than 0.9.6 minimal fix for NUL-termination assumption in replace (108832, r=shaver, sr=jband). 2001-11-20 21:26:33 +00:00
brendan%mozilla.org
5eaba7585d Don't warn or 'correct' = to == in a condition unless the right operand has greater precedence than == (106244, r=shaver, sr=jband). 2001-11-20 05:20:57 +00:00
rginda%netscape.com
43f2ce47ff bug 110903, patch=brendan, sr=shaver, r=me
Call new script hook for scripts created via xdr.
2001-11-20 02:47:41 +00:00
brendan%mozilla.org
024ffbebe7 Don't ass-u-me fp->argv => fp->fun (109635, sr=shaver/jband). 2001-11-20 02:37:01 +00:00
timeless%mac.com
060425ec59 Bugzilla Bug 110080 change !NS_SUCCEEDED(status) to NS_FAILED(status)
s/!NS_SUCCEEDED/NS_FAILED/g;s/!NS_FAILED/NS_SUCCEEDED/g;
r=dougt sr=hewitt
2001-11-19 06:45:00 +00:00
pschwartau%netscape.com
216a94f367 Initial add. Regression test for bug 110286. 2001-11-17 03:20:45 +00:00
brendan%mozilla.org
051d085765 Remove __call__ and add a callback used to check f.caller access for any function object f (109113, r=jst, sr=jband). 2001-11-16 02:56:49 +00:00
alecf%netscape.com
d49a4ba867 win32 REQUIRES cleanup 2001-11-15 03:49:13 +00:00
seawood%netscape.com
c7ca889121 Build libmozjs during the install phase.
Bug #104307 sr=jband
2001-11-14 04:52:55 +00:00
bzbarsky%mit.edu
f2ee8260a0 Use NS_LITERAL_STRING instead of NS_ConvertASCIItoUCS2 where possible
(i.e. where the string is a literal).  Bug 104159, r=jag, sr=alecf
2001-11-14 01:33:42 +00:00
pschwartau%netscape.com
0a61967ca6 Adding another case to test. 2001-11-13 19:46:27 +00:00
brendan%mozilla.org
8b9fb46499 Avoid ClaimScope (lock-free to -full transition) in JS_GetClass and js_FinalizeObject called from the GC (109183, r=shaver, sr=jband). 2001-11-11 21:25:13 +00:00
jband%netscape.com
cd8dc8ee2c not part of build. Now that null DOM strings are correctly supported we can fix the test case 2001-11-10 22:35:26 +00:00
pschwartau%netscape.com
7a9c2596f2 Fixing a typo. 2001-11-10 02:47:52 +00:00
pschwartau%netscape.com
267f1d9202 Adding another case to test. 2001-11-10 02:46:24 +00:00
brendan%mozilla.org
91397f1e55 For now (0.9.6), str_replace requires an independent replacement string (108832, r=shaver, sr=jband, a=asa). 2001-11-08 23:53:33 +00:00
pschwartau%netscape.com
b0756acf45 Initial add. Regression test for bug 108440. 2001-11-07 23:20:48 +00:00
nboyd%atg.com
e60c42afed Patch from Igor:
I suggest to move the code in ScriptableObject.get/put that deals with getter/setter
into separated methods so it would be easy to follow the code and the attached patch
does just that.
2001-11-07 14:15:48 +00:00
brendan%mozilla.org
63cb2c1077 Fix Function.call(this, 'alert(42)')() so the anonymous function finds its nearest scripted caller's principals (90546, sr=shaver&jband). 2001-11-07 06:34:04 +00:00
dbaron%fas.harvard.edu
8cd8d91750 Ensure that string literals are used as |const char*| rather than |char*|. r=jag sr=brendan b=107052 2001-11-07 06:24:10 +00:00
mkaply%us.ibm.com
5991fb004d #105476
r=os2team, sr=brendan@mozilla.org
Add ASM implementation of js_CompareAndSwap for OS/2 VACPP
2001-11-07 05:20:33 +00:00
dbaron%fas.harvard.edu
bfb2f49916 Add assertions that users of nsDependentC?String meet the requirements of nsAFlatC?String. Add nsDependentSingleFragmentC?Substring for users that don't. Additional cleanup after bug 100214. b=104651 r=jag sr=scc 2001-11-07 04:12:20 +00:00
brendan%mozilla.org
c220d0c707 Avoid recursive join/toString death (108440, r=shaver, sr=jband). 2001-11-07 00:15:44 +00:00
brendan%mozilla.org
be20b21443 Move the oversized arena back-pointer to a well-aligned header extension lying just behind a->base (108013, sr=waterson&jband). 2001-11-07 00:11:22 +00:00
jband%netscape.com
0c81cb1768 better error message when zero passed where object or null expected. bug 108284. r=dbradley sr=shaver. Also, fix uninitilized counter var in debug only code rs=jband 2001-11-06 00:40:54 +00:00
rginda%netscape.com
452f1525a4 removing dead code, see mozilla/js2 2001-11-05 21:46:17 +00:00
rginda%netscape.com
0065b1bb33 removing dead code, see mozilla/js2 2001-11-05 21:38:18 +00:00
seawood%netscape.com
be10c3b1a8 Backing out fix for remote mach-o builds as it left mach-o builds fragile.
Add TK_CFLAGS back to default CFLAGS/CXXFLAGS.
Bug #107696
2001-11-03 03:29:05 +00:00
rginda%netscape.com
2085b262f0 bug 108257, "source notes broken for functions compiled via JS_CompileUCFunctionForPrincipals", sr=brendan, r=shaver
no need to emit the function body after calling FunctionBody
2001-11-03 00:10:47 +00:00
peterv%netscape.com
3470de8c5b Add build option for the JS profiler on Mac. a=dbradley. Not part of the build. 2001-11-02 10:27:52 +00:00
pschwartau%netscape.com
c97d13ddcf Improving readability. 2001-11-02 02:17:57 +00:00
pschwartau%netscape.com
491a9eb409 Initial add. Regression test for bug 107771. 2001-11-02 02:06:54 +00:00
dbradley%netscape.com
5cb0f9371f Bug 83426 - Remove DOM exception hack. r=jst, r=dbradley, sr=jband 2001-11-01 15:52:53 +00:00
jband%netscape.com
3bcdaf198c fixing warnings from recent landing and uncommenting test cases I did not mean to comment out for the checkin 2001-11-01 05:18:35 +00:00
brendan%mozilla.org
3c38914b93 Fix nul-termination assumption hidden in lastIndexOf, broken by dependent strings fix for bug 56940 (107771, r=jag, sr=waterson). 2001-11-01 03:19:54 +00:00
jband%netscape.com
a2511b96a8 fix Mac bustage. I can't believe the Mac can't do this conversion without a cast! 2001-11-01 02:36:19 +00:00
jband%netscape.com
3ff792dd5d the HP compiler says that anonymous unions can't even have structs. So the union must be named. Fixing that bustage 2001-11-01 01:45:48 +00:00
jband%netscape.com
c052cc3bf0 fix Mac bustage (I hope). I think these names conflicted with other names 2001-11-01 01:15:53 +00:00
seawood%netscape.com
8a2a775382 Since '-framework Carbon' causes binaries to require console access to run, do not link using that flag by default. Otherwise, remote builds & non-console tinderboxes will break. Mac OSX Mach-O only.
Bug #107696 r=mozbot
2001-11-01 00:54:48 +00:00
pete%alphanumerica.com
b52992027b b=107823, r=ccarlen, sr=brendan
--pete
2001-11-01 00:11:15 +00:00
jband%netscape.com
2882268cda added files: mozilla/js/src/xpconnect/src/xpcvariant.cpp 2001-10-31 23:36:34 +00:00
jband%netscape.com
84bfc894a4 add support for nsIVariant and nsIPropertyBag. bug 44675 and bug 98209. sr=vidur r=dbradley 2001-10-31 23:35:07 +00:00
rginda%netscape.com
7491994718 bug 99601, don't install xpconnect debugger keyword handler if one is already there, r=jband, sr=brendan 2001-10-31 23:13:17 +00:00
brendan%mozilla.org
2caef4a183 Don't try to correct = to == if strict, do it only if downrev (106244, r=jband, sr=shaver). 2001-10-31 03:17:00 +00:00
pschwartau%netscape.com
fb838280d6 Initial add. Regression test for bug 94257. 2001-10-31 02:32:38 +00:00
nboyd%atg.com
3067721c3c Fix bug with test case:
var testArray = new Array(6);
testArray[1+1]+=2;
2001-10-30 14:06:58 +00:00
nboyd%atg.com
787b93699a Hello Norris
The following test case case leads to a compilation error in Rhino. In this
script alert is an user defined
function in the global object and it shows the value of the specified
parameter in a popup window. Save the script as a html file and run it under
Netscape and IE. The output via their JS engines is that alert(1)
executes but the execution of line fails as blks variable is undefined. The
Fix bug:

Rhino engine fails at compilation time itself and cannot excute the script.
It doesn't like the syntax of line.


Steven


/// ****************  test case **************    ///
<script>
alert(1);
  blks[ 10 << 2 ] |= true;
  alert(2);
</script>


/// **********************  Error Message ************************** ////
evaluating script: null
java.lang.NullPointerException
  at org.mozilla.javascript.Interpreter.generateICode(Compiled Code)
  at org.mozilla.javascript.Interpreter.generateICode(Compiled Code)
  at org.mozilla.javascript.Interpreter.generateICode(Compiled Code)
  at org.mozilla.javascript.Interpreter.generateICode(Compiled Code)
  at org.mozilla.javascript.Interpreter.generateICode(Compiled Code)
  at org.mozilla.javascript.Interpreter.generateICodeFromTree(Compiled Code)
  at
org.mozilla.javascript.Interpreter.generateScriptICode(Interpreter.java)
  at org.mozilla.javascript.Interpreter.compile(Interpreter.java)
  at org.mozilla.javascript.Context.compile(Context.java)
  at org.mozilla.javascript.Context.compile(Context.java)
2001-10-30 13:55:26 +00:00
rginda%netscape.com
db43fadc93 bug 99601, add filter support to js/jsd, r=jband sr=brendan
large addition to the jsd_xpc component allows arbitrary filtering of debug hooks by url pattern, line range, and global object.  also adds ability to begin instrumenting jsscripts at app startup.
2001-10-30 13:41:32 +00:00
nboyd%atg.com
0babafcaa0 Patch from Igor:
I must admit this is very subtitle, but still...

Here are the lines from
    public void defineProperty(String propertyName, Object delegateTo,
                               Method getter, Method setter, int attributes)


        GetterSlot slot = (GetterSlot)getSlotToSet(propertyName,
                                                   propertyName.hashCode(),
                                                   true);
        slot.delegateTo = delegateTo;
        slot.getter = getter;
        slot.setter = setter;
        slot.setterReturnsValue = setter != null && setter.getReturnType() != Void.TYPE;
        slot.value = null;
        slot.attributes = (short) attributes;
        slot.flags = (byte)flags;

Now suppose that after the new slot is added, another thread is accessing it. Then it would see not yet ready slot with all nasty consequences! For example,  SMP computer can re-arrange writes so the new value of slot.flags would be visible before slot.getter then another thread would generate null pointer exception.

race2_fix.diff fixes that by using the explicit Slot argument to addSlot instead of boolean flag so the new slot can be fully initialized and then inserted under synchronization to the table. I also call addSlot directly because it is supposed to be used with not-yet existed properties and split addSlot to addSlot and addSlotImpl so in case of table growth there is no need to re-enter already synchronized monitor.

This changes also allows to explicitly throw RuntimeException if defineProperty is called for the property that is already exists instead of either throwing cast exception in "GetterSlot slot = (GetterSlot)getSlotToSet(propertyName," or worth yet re-initializing already existed slot.

Regards, Igor
2001-10-30 13:07:00 +00:00
nboyd%atg.com
08247fcd49 Print either line or file name if either is present. 2001-10-30 12:59:30 +00:00
pschwartau%netscape.com
489809edc1 Adding reference to another Bugzilla bug this testcase covers. 2001-10-30 03:28:15 +00:00
brendan%mozilla.org
7000513580 Ensure atom strings are immutable -- duh! (107138, r=jag, sr=jband). 2001-10-30 02:33:41 +00:00
pschwartau%netscape.com
cd0a6755c1 Initial add. Regression test for bug 107138. 2001-10-30 00:20:03 +00:00
brendan%mozilla.org
671178cbdb Consolidate property cache flush under JS_ClearScope (107265, r=shaver, sr=jband). 2001-10-29 19:30:03 +00:00
brendan%mozilla.org
d27c4cb86f Followup to bug 56940's big patch, tighten GC-mark case analysis, assume atom strings are immutable. 2001-10-28 22:37:25 +00:00