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
brendan%mozilla.org
0d99c56ee7
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).
...
git-svn-id: svn://10.0.0.236/trunk@121981 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 00:06:40 +00:00
igor%mir2.org
1d36d6d37f
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>)
...
git-svn-id: svn://10.0.0.236/trunk@121961 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-21 22:00:08 +00:00
igor%mir2.org
a30adf8bfd
Optimization in toInt32/toUint32/toUint16 for common case of integer argument.
...
git-svn-id: svn://10.0.0.236/trunk@121944 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-21 20:18:15 +00:00
igor%mir2.org
dc3598a563
Added indexOf and lastIndexOf
...
git-svn-id: svn://10.0.0.236/trunk@121942 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-21 20:14:10 +00:00
igor%mir2.org
af7c9c5715
In getElements return ScriptRuntime.emptyArgs when array length is 0
...
git-svn-id: svn://10.0.0.236/trunk@121941 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-21 20:13:30 +00:00
pschwartau%netscape.com
0d2852fa7f
Initial add. Regression test for bug 145779.
...
git-svn-id: svn://10.0.0.236/trunk@121887 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-20 20:37:43 +00:00
bratell%lysator.liu.se
86074cf594
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
...
git-svn-id: svn://10.0.0.236/trunk@121884 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-20 20:07:48 +00:00
igor%mir2.org
1e61698378
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.
git-svn-id: svn://10.0.0.236/trunk@121870 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-20 11:40:17 +00:00
bratell%lysator.liu.se
40adde0ec3
Followup to checkin for bug 120992. It asserted in an edge case which this fixes. r=mozbot
...
git-svn-id: svn://10.0.0.236/trunk@121844 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-18 17:33:37 +00:00
bratell%lysator.liu.se
76194315c8
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.
...
git-svn-id: svn://10.0.0.236/trunk@121841 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-18 06:21:49 +00:00
nboyd%atg.com
ed69e3e861
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())
git-svn-id: svn://10.0.0.236/trunk@121821 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-18 01:57:52 +00:00
jst%netscape.com
01d39954de
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
...
git-svn-id: svn://10.0.0.236/trunk@121790 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-17 22:36:54 +00:00
igor%mir2.org
4c5f340966
In evalSpecial do not allocate int[] buffer Context.getSourcePositionFromStack if line number is already known
...
git-svn-id: svn://10.0.0.236/trunk@121603 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 04:18:56 +00:00
igor%mir2.org
ccd0df1a7b
In jsConstructor use single StringBuffer to build function source
...
git-svn-id: svn://10.0.0.236/trunk@121602 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 04:17:04 +00:00
igor%mir2.org
e9390a105e
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
...
git-svn-id: svn://10.0.0.236/trunk@121563 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 21:27:46 +00:00
brendan%mozilla.org
479af8befa
Checking in khanson@netscape.com's patch fixing GMT offset day-overflow (65671, r=mccabe, sr=jband).
...
git-svn-id: svn://10.0.0.236/trunk@121539 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 19:44:34 +00:00
dougt%netscape.com
d6cc711878
Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756
...
git-svn-id: svn://10.0.0.236/trunk@121534 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 18:55:21 +00:00
seawood%netscape.com
69f92b071e
Because js uses static data structures and is linked into other shared libraries, js must be built as a shared library.
...
Thanks to Colin Blake <colin@theblakes.com> for the original patch.
Bug #127442 r=bryner
git-svn-id: svn://10.0.0.236/trunk@121509 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 01:37:07 +00:00
rginda%netscape.com
dac6892cd1
add PERL_BIN and PERL_ARGS
...
git-svn-id: svn://10.0.0.236/trunk@121440 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-14 01:44:01 +00:00
rginda%netscape.com
6bafa56631
initial add of js api documentation source
...
git-svn-id: svn://10.0.0.236/trunk@121438 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-14 01:39:03 +00:00
igor%mir2.org
151f5d542a
Elimination of FileWindow.breakpoints and Main.breakpointsMap as reference to SourceInfo provides all necessary information
...
git-svn-id: svn://10.0.0.236/trunk@121336 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-11 18:28:44 +00:00
igor%mir2.org
2831e8a4ee
Removing itsFirstLine and itsEndLine from InterpreterData and replacing in DebuggableScript getFirstLine, getEndLine and getIntructionLines by getLineNumbers as Debugger imlementation can get all the necessary information from single call to getLineNumbers
...
git-svn-id: svn://10.0.0.236/trunk@121334 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-11 16:15:50 +00:00