Граф коммитов

6215 Коммитов

Автор SHA1 Сообщение Дата
igor%mir2.org fa9d55e2a1 Patch from Daniel Gredler <danigredler@charter.net> to address bug 271401 :
JS prototypes for superclasses with ScriptableObject.defineClass
2004-12-07 00:10:31 +00:00
brendan%mozilla.org 32e7a4bde1 Implement Deutsch-Schorr-Waite, plus related GC metering improvements, to avoid stack overflow crashes when marking very deep object lists (203278, r=igor@fastmail.fm and Igor wrote the tail-recursion elimination code). 2004-12-06 23:17:19 +00:00
brendan%mozilla.org fadc8f54dc Fix bug where spans of whitespace and entity refs was scanned as whitespace (bug 246441 comment 48, r=self). 2004-12-06 22:11:57 +00:00
brendan%mozilla.org 0ab5ddb4da Fiddle with comments and cosmetics. 2004-12-06 18:42:30 +00:00
gerv%gerv.net b92568bebe Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-12-01 22:27:03 +00:00
igor%mir2.org d38fbd087e Link to changes.html 2004-12-01 00:07:07 +00:00
igor%mir2.org 8e8f1205cf Added release date information 2004-11-30 23:23:17 +00:00
brendan%mozilla.org 5f8cd19af3 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 5423bebbf0 e4x test fixes to match spec, r=igor@fastmail.fm. 2004-11-29 20:49:34 +00:00
brendan%mozilla.org 9abc199862 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 cee22090c3 Version is 1.6R1 2004-11-29 14:30:28 +00:00
igor%mir2.org a3ee5d5129 *** empty log message *** 2004-11-29 13:07:27 +00:00
timeless%mozdev.org 19f064c478 Fixing line ending 2004-11-28 19:52:48 +00:00
brendan%mozilla.org 9aecc4d32e 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 ead9cce883 Fix memcmp length gaffe, plus polish a few comments (246411). 2004-11-25 04:37:18 +00:00
brendan%mozilla.org 62a8b1accf - 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 04872cc3c9 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 0054cfa5c7 Fixing bug 271545: XML() should bahave exactly as XML("") 2004-11-24 23:16:38 +00:00
igor%mir2.org 7466eb5da0 Test for bug 271545 2004-11-24 15:30:38 +00:00
igor%mir2.org 471522f868 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 46983f0e49 I added debug API to get names of parameters or variables from DebuggableScript. 2004-11-24 10:03:14 +00:00
darin%meer.net 373f51f2c6 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 a14a802332 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 9a57fb5644 b=239969, xpcshell needs to compile scripts with sysprin, r=shaver 2004-11-23 05:38:59 +00:00
igor%mir2.org c3f6f8811c 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 53e1ba3db0 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 aa233e680f Preparations for Rhino 1.6R1 release 2004-11-19 13:27:45 +00:00
igor%mir2.org 7bbde08ea4 *** empty log message *** 2004-11-19 13:01:16 +00:00
igor%mir2.org c810732922 Renaming DebugGui into SwingGui to better reflect GUI nature 2004-11-19 10:13:04 +00:00
igor%mir2.org a6285637fd 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 17f78b8762 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 4f4dec1bb4 E4X, configured off, code-complete. 2004-11-17 07:43:01 +00:00
igor%mir2.org d41bf7368b 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 7a24eb76d8 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 f94aa8151e fixes bug 219400 "remove callers of nsServiceManager:: methods" r=bsmedberg 2004-11-07 23:59:35 +00:00
brendan%mozilla.org 6aee612a2b Home sp before all OBJ_* call-outs (267797, r=shaver). 2004-11-05 23:16:37 +00:00
brendan%mozilla.org 74dbb040ac 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 1a2d34d09e Toggle JSFRAME_ASSIGNING around setter call from inc/dec ops (267216, r=shaver). 2004-11-03 22:54:50 +00:00
darin%meer.net 96c79cea45 eliminating uses of deprecated nsComponentManager:: methods (bug 267040), r=bsmedberg 2004-11-01 18:50:36 +00:00
igor%mir2.org e8651af27d 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 93d3069419 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 185bee0e6d 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 50027bc3ad Fixing bug 266418: making RegExp serializable 2004-10-28 11:31:38 +00:00
igor%mir2.org 3f5b0b9d22 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 6449692d51 Preparations for Rhino 1.6R1 RC3 2004-10-22 13:34:44 +00:00
igor%mir2.org e68a272765 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 5248f09cb7 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 bb9a8bf35e 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 ab877fd889 Checking in dbradley's patch for bug 265545 (r=jst, sr=me). 2004-10-22 07:29:44 +00:00
igor%mir2.org 7e0e605b99 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