4356 Commits

Author SHA1 Message Date
pschwartau%netscape.com
1de03ef582 Removing 6 skips. All pass now that the new Rhino RegExp engine has been checked in.
git-svn-id: svn://10.0.0.236/trunk@123724 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 22:31:47 +00:00
pschwartau%netscape.com
ce59881ff5 Adjusting FAST constant upward so that test can pass in Rhino -
git-svn-id: svn://10.0.0.236/trunk@123716 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 20:53:10 +00:00
rginda%netscape.com
977eaa489e fix build bustage, NS_IF_RELEASE the raw pointer, not the COM pointer.
git-svn-id: svn://10.0.0.236/trunk@123626 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:40:19 +00:00
rogerl%netscape.com
05e5562d17 New RegExp engine implementation.
git-svn-id: svn://10.0.0.236/trunk@123614 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 21:57:57 +00:00
rginda%netscape.com
de73e0dbca 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.


git-svn-id: svn://10.0.0.236/trunk@123613 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 21:56:23 +00:00
pschwartau%netscape.com
cd7a709a52 Correcting Section 1 to test execution as well as compilation of function.
git-svn-id: svn://10.0.0.236/trunk@123551 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 00:23:43 +00:00
pschwartau%netscape.com
49b06a0ae3 Adding extra comments -
git-svn-id: svn://10.0.0.236/trunk@123548 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 00:13:04 +00:00
pschwartau%netscape.com
46de850836 Initial add. Regression test for bug 146596.
git-svn-id: svn://10.0.0.236/trunk@123546 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 00:02:29 +00:00
nboyd%atg.com
c048ebabbe 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.


git-svn-id: svn://10.0.0.236/trunk@123421 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 00:49:47 +00:00
nboyd%atg.com
1eac87dfa5 Update last qualified release statement.
git-svn-id: svn://10.0.0.236/trunk@123420 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-16 23:51:15 +00:00
dougt%netscape.com
dffd6e4f8a Fixes 48888 - xpcom flat file backend. r=dp@netscape.com sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123350 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 21:33:05 +00:00
igor%mir2.org
77a428cced Added get/setJavaPrimitiveWrap to WrapFactory to get/set if instances of String, Number should be wrapped or not.
git-svn-id: svn://10.0.0.236/trunk@123179 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 19:11:50 +00:00
brendan%mozilla.org
97b9374b49 Back out last change pending debug build (see crash bug 151066).
git-svn-id: svn://10.0.0.236/trunk@123146 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 08:31:43 +00:00
brendan%mozilla.org
125cb784d6 Report uncaught errors-as-exceptions from outermost JS_Compile*Function* API calls, just as for JS_Compile*Script* (150584, r=rginda, sr=jst).
git-svn-id: svn://10.0.0.236/trunk@123145 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 08:04:28 +00:00
igor%mir2.org
0544f7b57c 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).


git-svn-id: svn://10.0.0.236/trunk@123139 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 05:32:35 +00:00
brendan%mozilla.org
d6cd3ded85 For the file input case, roll our own fgets replacement to handle NULs in files (148800, r=rogerl, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@123077 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 21:32:54 +00:00
brendan%mozilla.org
e9e6f18d96 Drop non-ECMA f.a-for-arg/var-a-in-active-f support (137000, r=khanson, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@123067 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:43:50 +00:00
nboyd%atg.com
f9d9ec1879 Add to log of changes.
git-svn-id: svn://10.0.0.236/trunk@122989 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 17:44:44 +00:00
nboyd%atg.com
a1f8df61c4 Add new API class WrapFactory.
git-svn-id: svn://10.0.0.236/trunk@122987 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 14:28:37 +00:00
nboyd%atg.com
b16f815afb Update javadoc.
git-svn-id: svn://10.0.0.236/trunk@122986 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 14:27:43 +00:00
nboyd%atg.com
104176e6c6 Add PrimitiveWrapHandler example.
git-svn-id: svn://10.0.0.236/trunk@122985 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 14:23:32 +00:00
nboyd%atg.com
4f7b214f80 Add example of the use of a WrapFactory.
git-svn-id: svn://10.0.0.236/trunk@122984 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 14:19:09 +00:00
nboyd%atg.com
07e6387f6b Fix javadoc.
git-svn-id: svn://10.0.0.236/trunk@122983 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 14:09:26 +00:00
igor%mir2.org
cc37fd3667 Deprecating NativeJavaObject.wrap and using Context.getWrapFactory().wrap() instead.
git-svn-id: svn://10.0.0.236/trunk@122962 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 15:58:15 +00:00
igor%mir2.org
95848e2010 More comments
git-svn-id: svn://10.0.0.236/trunk@122961 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 15:57:03 +00:00
igor%mir2.org
b996771d69 Documentation: points to watch when upgrading to WrapFactory
git-svn-id: svn://10.0.0.236/trunk@122960 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 15:56:12 +00:00
igor%mir2.org
aa742e4e57 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


git-svn-id: svn://10.0.0.236/trunk@122959 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 15:54:30 +00:00
igor%mir2.org
111ad534c3 Introducing the WrapFactory class that should be used in place of the deprecated WrapHandler interface.
git-svn-id: svn://10.0.0.236/trunk@122956 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 09:23:00 +00:00
mcafee%netscape.com
13770b909f 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
git-svn-id: svn://10.0.0.236/trunk@122934 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-08 06:59:53 +00:00
pschwartau%netscape.com
acfdc5bfee Adding new sections authored by john@statesoftware.com from bug 150032.
git-svn-id: svn://10.0.0.236/trunk@122931 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-08 04:26:18 +00:00
alecf%netscape.com
6ebda75c34 fix for bug 101761 - REQUIRES update - remove all REQUIRES that are no longer necessary.. r=cls, a=asa (build-only changes)
git-svn-id: svn://10.0.0.236/trunk@122820 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 20:28:14 +00:00
nboyd%atg.com
d51aa273b6 Fix for bug 149285: Complier does not report the correct line number on
SyntaxError:Invalid assignment left-hand side.


git-svn-id: svn://10.0.0.236/trunk@122809 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 15:01:57 +00:00
igor%mir2.org
64390a84fc 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.
git-svn-id: svn://10.0.0.236/trunk@122784 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 20:40:57 +00:00
brendan%mozilla.org
13e8a43ab1 Ensure a live keyHash *after* multiplying by the irrational (146907, r=dbaron, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@122729 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 00:47:38 +00:00
pschwartau%netscape.com
bd469e1cf8 Cosmetic whitespace cleanup.
git-svn-id: svn://10.0.0.236/trunk@122691 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 19:51:59 +00:00
rogerl%netscape.com
a60dd76705 Corrected tests to match ECMA - unmatched paren contents need to have the
value 'undefined' rather than an empty string.


git-svn-id: svn://10.0.0.236/trunk@122685 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 18:51:05 +00:00
nboyd%atg.com
15cf3a18a3 Fix ClassCastException.
git-svn-id: svn://10.0.0.236/trunk@122683 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 18:37:21 +00:00
brendan%mozilla.org
28a8567dd7 Respect addProperty failure (148899, r=khanson, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@122680 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 18:13:55 +00:00
pschwartau%netscape.com
ef11e63725 Initial add; regression test for bug 137000.
git-svn-id: svn://10.0.0.236/trunk@122624 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 02:19:48 +00:00
dbradley%netscape.com
60796a3343 Fixes XPCONNECT_STANDALONE bustage - see bug 121438 for details
git-svn-id: svn://10.0.0.236/trunk@122418 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 13:51:08 +00:00
nboyd%atg.com
6e25529d4a Fix bug found by felix.meschberger@day.com:
given the following object :

----------------------------------------------
function SomeObject() {}
SomeObject.prototype.exec = function() {
  var local = this.someField;
}
----------------------------------------------

i create an 'instance', set a field and call the exec method :

----------------------------------------------
var someField = "global field value";
var anInstance = new SomeObject();
anInstance.someField = "instance field value";
anInstance.exec();
----------------------------------------------

then the local variable 'local' in the exec() method is assigned the value
of the global 'someField' variable instead of the instance field value.

the problem seems to be in the ScriptRuntime.callOrNewSpecial() method,
which is called, because the parser treats the name 'exec' specially. in
this method the exec() method gets called with

   return call(cx, fun, thisArg, args, scope);

where the 'thisArg' parameter really is the global this value instead of
the dynamic this value, which is in the jsThis variable and which would be
the one needed...

is it legitimate to replace the above call in callOrNewSpecial() with the
following line :

   return call(cx, fun, jsThis, args, scope);

this seems to only happen for methods named 'exec', which are identified as
special in the NodeTransformer.isSpecialCallName() method.

any help is appreciated. thank you very much for your time.

kind regards,
felix


git-svn-id: svn://10.0.0.236/trunk@122320 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 13:41:16 +00:00
khanson%netscape.com
ae857abf6a patch to speed up array.sort of strings by 40% r=brendan, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@122195 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-27 05:53:57 +00:00
brendan%mozilla.org
ce6cc88b16 Don't emit JSOP_DEF{VAR,CONST} unless at top-level or in a heavyweight function (146596, r=jband, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@122176 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 00:33:23 +00:00
shaver%mozilla.org
b676ad258e 146210: Add Date.now to mirror JS_Now in script. r=rginda, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@122121 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 01:55:15 +00:00
igor%mir2.org
52822661f9 Back-indent the interpreter main loop to ease code following
git-svn-id: svn://10.0.0.236/trunk@122027 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 18:42:40 +00:00
igor%mir2.org
38fddcf688 Fixing bug 145791: apply and call with null and undefined arguments behaves as required and Function.prototype.apply.length returns 2.
git-svn-id: svn://10.0.0.236/trunk@122025 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 16:46:28 +00:00
pschwartau%netscape.com
215e9d229c Removing this test. It has been superseded by test ecma_3/Function/15.3.4.3-1.js
git-svn-id: svn://10.0.0.236/trunk@122014 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 06:01:09 +00:00
pschwartau%netscape.com
b6d1d217f9 Initial add. Tests language conformance to EMCA-262 Edition 3 Section 15.3.4.4
git-svn-id: svn://10.0.0.236/trunk@122013 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 05:54:58 +00:00
pschwartau%netscape.com
98e55f8ea2 Initial add. Tests language conformance to EMCA-262 Edition 3, Section 15.3.4.3
git-svn-id: svn://10.0.0.236/trunk@122012 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 05:54:21 +00:00
dbaron%fas.harvard.edu
1feee5c8c0 Fix Mac bustage from brendan's checkin.
git-svn-id: svn://10.0.0.236/trunk@121994 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 00:53:12 +00:00