Commit Graph

6211 Commits

Author SHA1 Message Date
gerv%gerv.net
670fb87360 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-12-01 22:27:03 +00:00
igor%mir2.org
14f3e3ead3 Link to changes.html 2004-12-01 00:07:07 +00:00
igor%mir2.org
70ece8dc32 Added release date information 2004-11-30 23:23:17 +00:00
brendan%mozilla.org
7c7cea2e5d Root the temporary vector used by array_sort via fp->vars (272336, r=shaver). 2004-11-30 17:52:29 +00:00
brendan%mozilla.org
12f7d715d0 e4x test fixes to match spec, r=igor@fastmail.fm. 2004-11-29 20:49:34 +00:00
brendan%mozilla.org
fae875f0a7 Scanner fixes for better diagnostics; XML/XMLList parent() fixes to match spec and fixed tests (246411, r=self). 2004-11-29 20:48:56 +00:00
nboyd%atg.com
024770db18 Version is 1.6R1 2004-11-29 14:30:28 +00:00
igor%mir2.org
a0c9f8d9ae *** empty log message *** 2004-11-29 13:07:27 +00:00
timeless%mozdev.org
8115bca784 Fixing line ending 2004-11-28 19:52:48 +00:00
brendan%mozilla.org
ac737db06e Don't forget to call the new-script and destroy-script hooks in js_FilterXMLList, so the debugger knows about the script cloned there. 2004-11-25 06:57:17 +00:00
brendan%mozilla.org
80859c486d Fix memcmp length gaffe, plus polish a few comments (246411). 2004-11-25 04:37:18 +00:00
brendan%mozilla.org
72310ad8a4 - Add declared flag to JSXMLNamespace, to implement the intent and test-wanted
effect of ECMA-357, specifically x.namespaceDeclarations() should not include
  the default namespace inherited from the <parent> tag wrapped around a string
  argument "<x>...</x>" by ToXML, whereas x.inScopeNamespaces() should.

  This case implies errata against 10.3.1, 10.4.1, and 13.4.4.24 (at least).

- Consolidate common code in an XMLArrayInsert function, renaming the misnamed
  precursor to XMLArrayAddMember.  XMLArrayInsert properly notifies any cursors
  iterating over the array, fixing for/in and for-each/in bugs such as this:

    var l = <><a/><c/><d/></>;
    var i = 0;
    for each (var x in l) {
        print(x.toXMLString());
        if (i == 1) l[0] += <b/>;
        i++;
    }

- Fix the bug induced by this erratum from ECMA-357:

9.2.1.2 step 2(c)(ii) sets _y.[[Parent]] = r_ where _r_ is the result of
        [[ResolveValue]] called on _x.[[TargetObject]] in 2(a)(i).  This can
        result in text parenting text:

        var MYXML = new XML();
        MYXML.appendChild(new XML("<TEAM>Giants</TEAM>"));

        (testcase from Werner Sharp <wsharp@macromedia.com>).

        To match insertChildAfter, insertChildBefore, prependChild, and
        setChildren, we should silently do nothing in this case.

- Fix PN2X_OUTERMOST not to overlay XSF_CACHE_VALID, causing it to appear to be
  set when cx->xmlSettingFlags were "translated" into ParseNodeToXML flags.  To
  avoid further such stupidity, consolidated all similar flags into XSF_* bits
  and eliminated the PN2X_* duals.

- Redo the way the default namespace is inherited by parsed XML from the
  <parent> tag under ToXML and ToXMLList, and implicitly inherited in the
  js_ParseNodeToXMLObject alternative path to ToXML.

- Handle null prefix (meaning undefined in ECMA-357, that is, no prefix was
  passed to the Namespace constructor) and empty prefix (which is normalized
  from null for the empty URI "no namespace" case) better in the parsing and
  ToXMLString code.

- Fixed a bug in PutProperty where it implements 9.2.1.2 2(c)(vii)(1) (whew!).
  Fixed another bug near that which stupidly assumed all XML nodes have names,
  leading to an obvious null pointer crash.

This should be the final round of work for bug 246411.  With the appropriate
testsuite patches, this passes all tests except e4x/Regress/regress-264369.js
(which probably should be invalidated by a correction to the ECMA-357 spec).
2004-11-25 03:07:22 +00:00
brendan%mozilla.org
3fed695bed Avoid recursive death due to JS1.2 toString=>toSource combined with after-the-fact, heretofore unversioned reflection of string chars as enumerable elements (271477, r=jband). 2004-11-25 00:55:01 +00:00
igor%mir2.org
a65d6fbe1c Fixing bug 271545: XML() should bahave exactly as XML("") 2004-11-24 23:16:38 +00:00
igor%mir2.org
b00883eb33 Test for bug 271545 2004-11-24 15:30:38 +00:00
igor%mir2.org
ae04809e92 I added DebuggableScript to javadoc list and fixed javadoc warnings about its documentation comments. 2004-11-24 10:38:40 +00:00
igor%mir2.org
14d93f1038 I added debug API to get names of parameters or variables from DebuggableScript. 2004-11-24 10:03:14 +00:00
darin%meer.net
6d8591d85f fixes bug 263360 "Make CallCreateInstance use NS_GetComponentManager instead of nonfrozen/deprecated nsComponentManager symbols" r=bsmedberg sr=dbaron 2004-11-23 20:53:38 +00:00
timeless%mozdev.org
d01dd1aa4c Bug 249782 Make Mozilla compile with Microsoft Visual Studio 2005
patch by sdwalker@myrealbox.com r=bryner
2004-11-23 19:34:02 +00:00
vladimir%pobox.com
38fa42a069 b=239969, xpcshell needs to compile scripts with sysprin, r=shaver 2004-11-23 05:38:59 +00:00
igor%mir2.org
3f2ace010a Removal of serialVersionUID which was not used correctly:
Rhino never claimed to support binary compatibility in the serialized objects and it is better to use the system generated ids always to catch errors about incompatible changes ASAP.
2004-11-22 13:23:03 +00:00
brendan%mozilla.org
c7ed3da614 In the Replace-calls-Insert case, where V is an XMLList, avoid creating holes and botching x.[[Length]] (246441 followup, rs=shaver). 2004-11-20 02:34:09 +00:00
igor%mir2.org
417113cf5f Preparations for Rhino 1.6R1 release 2004-11-19 13:27:45 +00:00
igor%mir2.org
9e7f27e3bf *** empty log message *** 2004-11-19 13:01:16 +00:00
igor%mir2.org
e1e0639343 Renaming DebugGui into SwingGui to better reflect GUI nature 2004-11-19 10:13:04 +00:00
igor%mir2.org
60acf60bc5 Fixing nasty bug which prevented Open/Load to work in GUI among other things: the debugger should enter context using factory.call(...) and not Context.call(...) as the default factory is not the one that is used by GUI. 2004-11-19 10:12:21 +00:00
igor%mir2.org
4b3a0cd41a For VARARG methods wrap the result in the same way as for other methods: in this way VARARG method returning non-JS-type will get its results properly wrapped as LiveConnect object 2004-11-17 16:48:57 +00:00
brendan%mozilla.org
428b8a8546 E4X, configured off, code-complete. 2004-11-17 07:43:01 +00:00
igor%mir2.org
5ae3dc38e0 XML no longer implements Wrapper interface. Instead getXmlObject method
is added to access the implementation. In this way all functionality
of Java API in XmlObject is available to scripts if they need it.
2004-11-10 23:13:04 +00:00
timeless%mozdev.org
d76959c6b9 Bug 207309 nsMemoryImpl::Alloc of 0: 'size' in jsdValue::GetProperties
r=shaver sr=shaver
2004-11-10 21:58:00 +00:00
darin%meer.net
950a78482d fixes bug 219400 "remove callers of nsServiceManager:: methods" r=bsmedberg 2004-11-07 23:59:35 +00:00
brendan%mozilla.org
9afb0af7ac Home sp before all OBJ_* call-outs (267797, r=shaver). 2004-11-05 23:16:37 +00:00
brendan%mozilla.org
04b24dd95c Skip deleted/misidentified properties in js_obj_toSource (233483, patch from shaver+timeless, r=me). 2004-11-04 01:52:28 +00:00
brendan%mozilla.org
ba19314393 Toggle JSFRAME_ASSIGNING around setter call from inc/dec ops (267216, r=shaver). 2004-11-03 22:54:50 +00:00
darin%meer.net
189ba5e5c4 eliminating uses of deprecated nsComponentManager:: methods (bug 267040), r=bsmedberg 2004-11-01 18:50:36 +00:00
igor%mir2.org
58aceb81d9 Implement specially NativeJavaObject.getDefaultValue for java.lang.Boolean to match the behavior of JS Boolean object. 2004-10-31 00:15:57 +00:00
igor%mir2.org
5e4041c8e1 Disabling invoker optimization by default: under jdk >= 1.4 and especially with 1.5 it does not bring noticeable benefits with typical usage while increasing loading time and memory consumption and introducing class loading issues. 2004-10-31 00:12:25 +00:00
igor%mir2.org
20d9c33ab6 Work for bug 261278: splitting STRICT_MODE into STRICT_VARS and STRICT_EVAL to allow for better compatibility in future if strictness would be exetended to other areas. 2004-10-28 14:13:05 +00:00
igor%mir2.org
7dc40416b6 Fixing bug 266418: making RegExp serializable 2004-10-28 11:31:38 +00:00
igor%mir2.org
993454366a Minimizing memory footprint by eliminating class fields:
1. IdScriptableObject.maxInstanceId is replaced by overridden getMaxInstanceId()

2. BaseFunction.argumentsProperty is replaced by storing when necessary explicit "arguments" property in ScriptableObject hashmap.

3. NativeFunction.(argNames|argCount|version) is replaced by code that reconstruct the necessary values from embedded in class file or InterpreterData (see bug 264637)
2004-10-25 15:44:24 +00:00
igor%mir2.org
5473ad4f8d Preparations for Rhino 1.6R1 RC3 2004-10-22 13:34:44 +00:00
igor%mir2.org
02b11dd425 Directory with external jars is renamed from jarlib to lib for consistency with other projects. 2004-10-22 12:36:36 +00:00
brendan%mozilla.org
c645710a9c Auto-mark parent if it's revised by PreCreate in XPCWrappedNative::GetNewOrUsed (264577, r=dbradley). 2004-10-22 07:49:29 +00:00
igor%mir2.org
0b2d78ab46 Fixing smalljar target implementation to include all the necessary classes and updating documentation about its usage. 2004-10-22 07:49:15 +00:00
brendan%mozilla.org
b2070d6d1f Checking in dbradley's patch for bug 265545 (r=jst, sr=me). 2004-10-22 07:29:44 +00:00
igor%mir2.org
f6bd49caa2 Compatibility with Rhino+Continuation fork: in ScriptableObject.callMethod always use object as scope source even if the scope from function does not belong to its prototype chain. 2004-10-21 17:55:14 +00:00
brendan%mozilla.org
b6d69b2765 Fix HasFinalReturn to handle labeled statements (265042, r=self). 2004-10-20 02:16:36 +00:00
brendan%mozilla.org
1b5234b527 Home sp above right JSOP_IN operand to protect it from GC (264995, rs=shaver). 2004-10-19 01:45:44 +00:00
igor%mir2.org
b7a9e90d94 Patch from Attila Szegedi <szegedia@freemail.hu> to adress bug 264637 :
Reducing InterpretedFunction footprint
2004-10-17 14:18:19 +00:00
igor%mir2.org
15518a5ed7 Fixing bug 263978: for compatibility with BSF usage IllegalArgumentException is not thrown on negative line numbers. 2004-10-16 00:37:05 +00:00