dbradley%netscape.com
d64eed2142
Bug 159667 - xpconnect needs support for finding *real* wrapped native methods. r=dbradley, sr=jst patch=jband
2002-08-07 23:39:11 +00:00
brendan%mozilla.org
a099682b6e
Fix a macro name (LIMIT, not MAX -- fencepost, not maximum value; r=lumpy, sr=jack).
2002-08-07 20:22:38 +00:00
seawood%netscape.com
301b1a4ca8
Remove unused defines:
...
_IMPL_NS_HTML
_IMPL_NS_RDF
_IMPL_NS_WEB
USE_NSREG
Patches for removing above defines contributed by Stephen Walker <walk84@yahoo.com>.
Bug #125118 r=cls sr=bryner
Bug #160397 r=cls sr=bryner
Bug #160628 r=cls
Bug #160451 r=cls sr=bryner
_IMPL_NS_VIEW
Patches for removing above define contributed by Brian Ryner <bryner@netscape.com>
Bug #160416 r=cls
2002-08-07 06:08:00 +00:00
alecf%netscape.com
f7ad4265ef
bug 157624 - prep for freezing nsISupports* primitives by renaming the string classes appropriately
...
nsISupportsString -> nsISupportsCString
nsISupportsWString -> nsISupportsString
r=dougt, sr=jag
2002-08-06 00:53:19 +00:00
pschwartau%netscape.com
9a8f03f10b
Correcting a mistake in the test.
2002-08-02 22:01:35 +00:00
pschwartau%netscape.com
5bbe7d36d7
Initial add. Testing regexps containing octal escape sequences. See bug 141078.
2002-08-02 21:27:12 +00:00
brendan%mozilla.org
c2dc7271c9
Steven Don's patch for bug 160592, opt:noicf linker option required for release builds (not part of Mozilla build).
2002-08-02 05:34:41 +00:00
pschwartau%netscape.com
880fd70566
Adding a comment
2002-08-02 00:13:00 +00:00
jdunn%netscape.com
b3c11d95b2
removing antiquated aix/jdk1.1.6 hackery
...
sr=brendan@mozilla.org
r=rogerl@netscape.com
a=asa@mozilla.org
# 158115
2002-08-01 11:04:21 +00:00
brendan%mozilla.org
4cbe5aceda
khanson's patch with a comment elaboration for bug 157652 (r=rogerl, sr=me, a=rjesup).
2002-07-31 21:42:12 +00:00
dbradley%netscape.com
7e203d102e
Added makefile.in to prepare for nmake going away. This is built separately, not part of the mozilla build process.
2002-07-29 20:47:02 +00:00
brendan%mozilla.org
4e32a6ca06
Finally fix 137000, which requires working around an MSVC ISO-C violation ('identical COMDAT folding', 151066, r=brendan/jrgm, sr=bryner/shaver, a=asa).
2002-07-24 01:48:40 +00:00
rogerl%netscape.com
fd5470f403
Changed decimal escape handling to backward compatible rather than ECMA3
...
conforming. (Bug#158159)
2002-07-23 21:38:03 +00:00
brendan%mozilla.org
bdbc5696c2
Don't return 1 cast to JSProperty* for a property found in a non-LiveConnect prototype object (155740, r=rogerl, sr=jband, a=chofmann/blizzard/scc).
2002-07-19 22:00:03 +00:00
pschwartau%netscape.com
7f3babd028
Initial add. Regression test for bug 141078.
2002-07-18 18:36:44 +00:00
seawood%netscape.com
fe2f4b55ff
Remove DARWIN define from osx builds as it cripples the feature set provided by OSX headers.
...
Bug #154232 r=wtc sr=scc a=scc
2002-07-18 04:09:30 +00:00
pschwartau%netscape.com
08029cc604
Skip testcase for bug 157652. Will not fix this in Rhino; the OOM error is reasonable.
2002-07-17 18:20:58 +00:00
pschwartau%netscape.com
ea91f9a8ab
Changing summary text.
2002-07-16 21:35:30 +00:00
pschwartau%netscape.com
efd856b77d
Initial add. Regression test for bug 157652.
2002-07-16 21:23:58 +00:00
igor%mir2.org
012b28330e
Serialization fixes to correctly restore members and related fields in NativeJavaClass.
2002-07-16 21:17:09 +00:00
igor%mir2.org
0257e231a5
Fixing the bug 157196: custom serialization of ScriptableObject not to save deleted/empty slot.
2002-07-16 21:15:51 +00:00
igor%mir2.org
5335225a4e
Checking for 1.2 version in toString for objects and arrays is replaced by calling cx.hasFeature(Context.FEATURE_TO_STRING_AS_SOURCE) to allow to control toString from applications without switching on other JS 1.2 features.
2002-07-16 17:42:18 +00:00
igor%mir2.org
091a93a0a4
I removed startString/getString and their support code as TokenStream uses its own buffer and fixed the bug 151337 which was cause by incorrect getLine
2002-07-16 17:37:46 +00:00
pschwartau%netscape.com
78cb8b1131
Initial add. Regression test for bug 58274.
2002-07-15 23:20:15 +00:00
pschwartau%netscape.com
8a7a515579
Initial add. Testing identifiers with double-byte names; see bug 58274.
2002-07-15 23:15:52 +00:00
igor%mir2.org
307d75e312
I changed TokenStream to use internal buffer in place of LineBuffer#startString/getString to store currently read characters for identifiers, strings and numbers. For the price of yet another character coping it allows to simplify code logic especially regarding interaction with LineBuffer.
...
I also fixed http://bugzilla.mozilla.org/show_bug.cgi?id=157509
2002-07-15 18:49:42 +00:00
pschwartau%netscape.com
6e07af089c
Correcting two sections of test.
2002-07-15 17:28:05 +00:00
pschwartau%netscape.com
2b0107b940
Expanding a comment for one section in greater detail.
2002-07-15 17:04:38 +00:00
pschwartau%netscape.com
7d22d6cfee
Initial add. Regression test for bug 157509.
2002-07-15 15:22:35 +00:00
pschwartau%netscape.com
bc1982e3dc
Comment edit.
2002-07-15 15:07:33 +00:00
pschwartau%netscape.com
f0874ff813
Added revision date + comment clean-up.
2002-07-15 15:06:37 +00:00
pschwartau%netscape.com
76e9ecaee9
Correcting an error in the test. See bug 155291.
2002-07-15 00:40:14 +00:00
pschwartau%netscape.com
e1400f904b
Correcting errors in test. See bug 155289.
2002-07-15 00:29:37 +00:00
pschwartau%netscape.com
39c8534587
Correcting errors in the test. See bug 155289.
2002-07-15 00:04:22 +00:00
pschwartau%netscape.com
601c4951e8
Correcting errors in the test. See bug 155289.
2002-07-14 23:57:03 +00:00
pschwartau%netscape.com
1bc81d3f35
Correcting an error in one section of the test. See bug 155285.
2002-07-14 23:42:23 +00:00
pschwartau%netscape.com
acbfef97b7
Rhino has also decided to conform with SpiderMonkey on this test. Adding early return for Rhino as well.
2002-07-14 22:34:50 +00:00
pschwartau%netscape.com
adaf7bd619
Rhino has also decided to conform with SpiderMonkey on this test. Removing early return for Rhino.
2002-07-14 22:23:52 +00:00
rginda%netscape.com
606d9f3518
bug 155838, "Infinite loop caused by strange code", r=peterv, sr=brendan, a=roc+moz@cs.cmu.edu
...
don't leave gDeadScripts pointing at garbage. May or may not fix the problem at hand, but is an improvement in either case.
2002-07-12 21:28:29 +00:00
igor%mir2.org
c725147d07
Call to InterpretedFunction.construct is inlined to avoid argument array allocation.
2002-07-12 19:40:49 +00:00
igor%mir2.org
a45b576bee
Creation and initialization of new object in BaseFunction.construct is moved to a separated function createObject to simplify inlining of InterpretedFunction.construct in Interpreter
2002-07-12 19:39:57 +00:00
igor%mir2.org
017b616d0b
Added ObjToIntMap.intern()
2002-07-12 19:37:20 +00:00
brendan%mozilla.org
a845077b0d
Emulate IE6 by making RegExp.prototype match the empty string (156355, r=rogerl, sr=shaver, a=dbaron).
2002-07-12 04:54:57 +00:00
igor%mir2.org
9896d08d55
When calling interpreted functions from Interpreter.interpret, pass current stack arrays to the callee to avoid creation of temporary argument arrays and wrapping double numbers into Double objects.
2002-07-11 21:17:34 +00:00
igor%mir2.org
8c98718cd4
Optimizing encode/decode not to allocate temporary buffers if the result equals the original string
2002-07-11 21:10:36 +00:00
igor%mir2.org
b8b54c75b5
Optimizing NativeGlobal.js_escape, ScriptRuntime.escapeString not to create StringBuffer if there are no character to escape in the initial string. Workaround for JDK 1.1 compiler bug in the initialization of ScriptRuntime.ComparableClass.
2002-07-11 18:45:16 +00:00
igor%mir2.org
ed6e3066d3
Fixing 136893: for(i in undefined), for(i in null) do not throw TypeError but treated as for(i in {})
2002-07-11 18:39:24 +00:00
pschwartau%netscape.com
729cd40cd3
Initial add. Based on examples from ECMA-262 Ed.3 spec, Section 15.10.2
2002-07-10 23:09:48 +00:00
igor%mir2.org
a3eec51b34
With Roger's <rogerl@netscape.com> new RegExp implementation Rhino passes:
...
js1_2/regexp/regress-9141.js
ecma_3/String/regress-104375.js
2002-07-10 22:14:48 +00:00
pschwartau%netscape.com
a234e4d358
Skip testcase for bug 152646. Will not fix this in Rhino; too much of a corner case.
2002-07-10 21:03:07 +00:00
igor%mir2.org
6387ce4fe2
No more skiping of ecma/LexicalConventions/7.7.3.js, it works as DToA converts numbers to strings properly
2002-07-10 20:00:25 +00:00
brendan%mozilla.org
c567b92abe
Fix GC_MARK_DEBUG (DEBUG only, r/sr=dbaron).
2002-07-10 03:01:32 +00:00
rogerl%netscape.com
e76a9bdf17
Fixes for bugs #155285 - Array.join(undefined) should use ','
...
#155289 - String.prototype.XXX.length has some wrong values
#155291 - RegExp properties should be DontEnum
Plus fix for matching against RegEXp captures with undefined value.
2002-07-09 22:28:52 +00:00
igor%mir2.org
1cf0bd8a05
Examples now uses try {} finally { Context.exit(); } to release Context even in case of errors
2002-07-09 17:49:16 +00:00
brendan%mozilla.org
703c294a0e
Null-check prop before dropping it (156354, r=khanson, sr=shaver).
2002-07-09 02:24:51 +00:00
brendan%mozilla.org
6377e47a6d
Eliminate broken old pre-ECMA switch case compile-time evaluation (144834, r=khanson, sr=shaver).
2002-07-09 02:15:49 +00:00
pschwartau%netscape.com
af1fd119ce
Trivial whitespace edit.
2002-07-09 00:48:13 +00:00
pschwartau%netscape.com
57d575aeb7
Initial add. Regression test for bug 152646.
2002-07-09 00:43:15 +00:00
pschwartau%netscape.com
c71ec565e1
Fixing mistake. Can't call printStatus(), etc. in js1_2 test directory, because js1_2/shell.js doesn't contain them.
2002-07-09 00:29:41 +00:00
timeless%mac.com
98fbaca8bd
Bug 125411 [NuBus] Mac installer crashes with a type 12 error (SleepQInstall)
...
r=dmose sr=jst
2002-07-08 07:26:41 +00:00
pschwartau%netscape.com
b253f4eec4
Initial add. Testing JS RegExp engine against results from Perl 5.
2002-07-08 04:03:11 +00:00
pschwartau%netscape.com
64ba8f5e13
Correcting the year in the copyright.
2002-07-08 03:58:27 +00:00
pschwartau%netscape.com
41a4e86e87
Adding reference to bug 85721.
2002-07-08 03:36:34 +00:00
pschwartau%netscape.com
35fdaa160e
Initial add. Testing JS RegExp engine against results from Perl 5.
2002-07-08 03:27:21 +00:00
pschwartau%netscape.com
db43d7a730
Initial add. Regression test for bug 144834.
2002-07-06 03:44:58 +00:00
igor%mir2.org
988587183a
New security implementation.
2002-07-04 21:40:12 +00:00
timeless%mac.com
651ae14d30
Bug 155466 clean up test consumers to correctly use NS_ShutdownXPCOM
...
r=dmose, sr=scc, moa: dougt, dbradley, gagan, harish, akk
2002-07-04 14:29:25 +00:00
brendan%mozilla.org
1d67c5d684
rogerl's fix to conform to ECMA by not enumerating regexp instance properties (155291, r=khanson, sr=brendan).
2002-07-03 21:07:53 +00:00
brendan%mozilla.org
413c0e6e50
rogerl's patch to fix some ECMA arity glitches (155289, r=khanson, sr=brendan).
2002-07-03 21:03:02 +00:00
brendan%mozilla.org
da451aaa9c
khanson's fix for Function.prototype.apply.length ECMA glitch (145779, r=rogerl, sr=brendan).
2002-07-03 21:00:15 +00:00
rogerl%netscape.com
c7c6b759c0
Bug #155285 . Array.join(undefined) should use ',' - ECMA compatibility.
...
r=scole, sr=brendan.
2002-07-03 07:22:14 +00:00
timeless%mac.com
e92566d986
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
03ace271f0
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
e86d47baeb
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
000bba17d1
Adding new section authored by martin.honnen@t-online.de from bug 150859.
2002-07-02 01:24:34 +00:00
rogerl%netscape.com
d4cc22a21f
Fixed matching of un-matched paren contents (e.g. /(a)\1/("x") ).
2002-06-28 23:04:55 +00:00
pschwartau%netscape.com
53e602d645
Correcting grammar in comment.
2002-06-26 19:16:53 +00:00
pschwartau%netscape.com
509e4f5caf
Initial add. Regression test for bug 154338.
2002-06-26 19:04:00 +00:00
jst%netscape.com
f77d6579ac
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
46878c2746
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
dfe5bcb486
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
823e1920ba
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
a270823871
Fixed whitespace testing. Fixed bug 122167 - $nn handling in replace.
2002-06-22 19:38:02 +00:00
rogerl%netscape.com
c80b7c5e07
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
17b4a2e105
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
3461caf04a
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
df23839e5b
Adjusting FAST constant upward so that test can pass in Rhino -
2002-06-20 20:53:10 +00:00
rginda%netscape.com
5551899c79
fix build bustage, NS_IF_RELEASE the raw pointer, not the COM pointer.
2002-06-19 22:40:19 +00:00
rogerl%netscape.com
9160462278
New RegExp engine implementation.
2002-06-19 21:57:57 +00:00
rginda%netscape.com
410a00825d
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
57e782b463
Correcting Section 1 to test execution as well as compilation of function.
2002-06-19 00:23:43 +00:00
pschwartau%netscape.com
6637d3a44d
Adding extra comments -
2002-06-19 00:13:04 +00:00
pschwartau%netscape.com
1ab211c7a1
Initial add. Regression test for bug 146596.
2002-06-19 00:02:29 +00:00
nboyd%atg.com
a4cf45ee33
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
a8fcbf98a8
Update last qualified release statement.
2002-06-16 23:51:15 +00:00
dougt%netscape.com
f93a81bfcb
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
f14fa81202
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
ca6d53b08b
Back out last change pending debug build (see crash bug 151066).
2002-06-12 08:31:43 +00:00
brendan%mozilla.org
7eefb1753b
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
558b670d29
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
b051aea202
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
16f97be249
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
ace017b83d
Add to log of changes.
2002-06-10 17:44:44 +00:00
nboyd%atg.com
1260918102
Add new API class WrapFactory.
2002-06-10 14:28:37 +00:00
nboyd%atg.com
a69e72afaf
Update javadoc.
2002-06-10 14:27:43 +00:00
nboyd%atg.com
55ef80a864
Add PrimitiveWrapHandler example.
2002-06-10 14:23:32 +00:00
nboyd%atg.com
ae9ac3fc7e
Add example of the use of a WrapFactory.
2002-06-10 14:19:09 +00:00
nboyd%atg.com
cc0bee4d2f
Fix javadoc.
2002-06-10 14:09:26 +00:00
igor%mir2.org
3ba6e39e98
Deprecating NativeJavaObject.wrap and using Context.getWrapFactory().wrap() instead.
2002-06-09 15:58:15 +00:00
igor%mir2.org
2900073823
More comments
2002-06-09 15:57:03 +00:00
igor%mir2.org
35054857bd
Documentation: points to watch when upgrading to WrapFactory
2002-06-09 15:56:12 +00:00
igor%mir2.org
01bf42fa82
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
23b2b0a6e5
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
76a4589d6e
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
da43044e45
Adding new sections authored by john@statesoftware.com from bug 150032.
2002-06-08 04:26:18 +00:00
alecf%netscape.com
bcf192e308
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
d99804ee87
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
2e9219f6d7
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
791ae0c843
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
8c6c19e462
Cosmetic whitespace cleanup.
2002-06-04 19:51:59 +00:00
rogerl%netscape.com
029d6574b3
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
nboyd%atg.com
005f83880e
Fix ClassCastException.
2002-06-04 18:37:21 +00:00
brendan%mozilla.org
1740ef44a7
Respect addProperty failure (148899, r=khanson, sr=shaver).
2002-06-04 18:13:55 +00:00
pschwartau%netscape.com
27f0823771
Initial add; regression test for bug 137000.
2002-06-04 02:19:48 +00:00
dbradley%netscape.com
b20ac26ede
Fixes XPCONNECT_STANDALONE bustage - see bug 121438 for details
2002-05-31 13:51:08 +00:00
nboyd%atg.com
88e610fce6
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
2002-05-30 13:41:16 +00:00
khanson%netscape.com
32f096fe9c
patch to speed up array.sort of strings by 40% r=brendan, sr=shaver
2002-05-27 05:53:57 +00:00
brendan%mozilla.org
f981dd90ae
Don't emit JSOP_DEF{VAR,CONST} unless at top-level or in a heavyweight function (146596, r=jband, sr=shaver).
2002-05-26 00:33:23 +00:00
shaver%mozilla.org
5edfcc1ec0
146210: Add Date.now to mirror JS_Now in script. r=rginda, sr=brendan.
2002-05-24 01:55:15 +00:00
igor%mir2.org
9dd700b9b8
Back-indent the interpreter main loop to ease code following
2002-05-22 18:42:40 +00:00
igor%mir2.org
d1f2443a48
Fixing bug 145791: apply and call with null and undefined arguments behaves as required and Function.prototype.apply.length returns 2.
2002-05-22 16:46:28 +00:00
pschwartau%netscape.com
fda5ff5a27
Removing this test. It has been superseded by test ecma_3/Function/15.3.4.3-1.js
2002-05-22 06:01:09 +00:00
pschwartau%netscape.com
e62a49c193
Initial add. Tests language conformance to EMCA-262 Edition 3 Section 15.3.4.4
2002-05-22 05:54:58 +00:00
pschwartau%netscape.com
40851f4b70
Initial add. Tests language conformance to EMCA-262 Edition 3, Section 15.3.4.3
2002-05-22 05:54:21 +00:00
dbaron%fas.harvard.edu
412d54c9d6
Fix Mac bustage from brendan's checkin.
2002-05-22 00:53:12 +00:00
brendan%mozilla.org
f1f6f1398e
Don't fail to call OBJ_CHECK_ACCESS for o.__proto__ = x, with enough mode bits to say what's happening (143369, r=shaver, sr=jst).
2002-05-22 00:06:40 +00:00
igor%mir2.org
47da51e506
Making HTML tag helper functions to convert thisObj to string to match SpiderMonkey and user expectations (was reported by Steven Beal <steven.beal@peregrine.com>)
2002-05-21 22:00:08 +00:00
igor%mir2.org
f45acbc9ee
Optimization in toInt32/toUint32/toUint16 for common case of integer argument.
2002-05-21 20:18:15 +00:00
igor%mir2.org
c8e2d56fca
Added indexOf and lastIndexOf
2002-05-21 20:14:10 +00:00
igor%mir2.org
9dadadad3e
In getElements return ScriptRuntime.emptyArgs when array length is 0
2002-05-21 20:13:30 +00:00
pschwartau%netscape.com
e952ddec96
Initial add. Regression test for bug 145779.
2002-05-20 20:37:43 +00:00
bratell%lysator.liu.se
abb8bd42b5
Bug 85267 - clear internal jsdtoa caches when closing down the js engine. Patch by steve.taylor@ndsuk.com r=khanson@netscape.com, sr=brendan@mozilla.org
2002-05-20 20:07:48 +00:00
igor%mir2.org
77af40f3ba
From the email:
...
The attached patch adds support for debugging eval and Function code transparently. It changes omj.NativeGlobal and omj.BaseFunction to embed line number of origin of eval and Function scripts into source name and pass 1 as base line for script code. In this way a debugger implementation can treat eval and Function code in the same way as scripts loaded from some url while giving more information about error location in case of an error in eval code as the error source would contain both line number of eval origin and line number in eval code itself.
I chose to embed line numbers via patterns like
sourcefile#<line-number>(eval)
sourcefile#<line-number>(Function)
just to be able to to pass the constructed name to URL constructor if the original sourcefile is a valid URL but it is pretty arbitrary.
2002-05-20 11:40:17 +00:00
bratell%lysator.liu.se
6778e86241
Followup to checkin for bug 120992. It asserted in an edge case which this fixes. r=mozbot
2002-05-18 17:33:37 +00:00
bratell%lysator.liu.se
911958f715
Bug 120992 - avoid expensive locking when converting numbers to strings. Now we look once for the whole operation instead of over and over again any time we access a shared structure. r=khanson@netscape.com, sr=brendan@mozilla.org.
2002-05-18 06:21:49 +00:00
nboyd%atg.com
e7a091bc74
Fix bug:
...
I have noticed that attempting to call a java method like this:
public void foo(String foo, Serializable bar)
{
// un-important details
}
from script using foo("foo", "bar"); fails because the second argument
is not deemed coercable to Serializable. A preliminary look at the
coercion code shows that no check is made in this case with
isAssignableFrom().
The to type is only tested against StringClass and ObjectClass (non
primitive case).
(See NativeJavaObject.getConversionWeight())
2002-05-18 01:57:52 +00:00
jst%netscape.com
2fdb4e3b04
Checking in jband's fix for bug 143853. Make sure to refresh the cached prototype JSObject when a context is reinitialized and a global object is reused between pages in a window. r=dbradley@netscape.com, sr=jst@netscape.com
2002-05-17 22:36:54 +00:00
igor%mir2.org
e2ae944398
In evalSpecial do not allocate int[] buffer Context.getSourcePositionFromStack if line number is already known
2002-05-16 04:18:56 +00:00
igor%mir2.org
f7a3211e91
In jsConstructor use single StringBuffer to build function source
2002-05-16 04:17:04 +00:00
igor%mir2.org
e7988e8b2e
Check in generateFunctionICode for own source to pass to debugger to cover new Function(...) case where top level function is not part of surrounding script
2002-05-15 21:27:46 +00:00