Commit Graph
4125 Commits
Author SHA1 Message Date
[email protected] 66e903de8e Root the temporary vector used by array_sort via fp->vars (272336, r=shaver). 2004-11-30 17:52:29 +00:00
[email protected] 427668c3ac e4x test fixes to match spec, [email protected]. 2004-11-29 20:49:34 +00:00
[email protected] a2f50c4a4c 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
[email protected] 529799ee89 Fixing line ending 2004-11-28 19:52:48 +00:00
[email protected] 41ce9274b7 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
[email protected] 46afbe2c76 Fix memcmp length gaffe, plus polish a few comments (246411). 2004-11-25 04:37:18 +00:00
[email protected] 2a0bc4ee48 - 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 <[email protected]>).

        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
[email protected] c910305b95 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
[email protected] 29f52c9e61 Test for bug 271545 2004-11-24 15:30:38 +00:00
[email protected] b9a22224f6 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
[email protected] 32967eb94a Bug 249782 Make Mozilla compile with Microsoft Visual Studio 2005
patch by [email protected] r=bryner
2004-11-23 19:34:02 +00:00
[email protected] d9cb7a95ae b=239969, xpcshell needs to compile scripts with sysprin, r=shaver 2004-11-23 05:38:59 +00:00
[email protected] 877bffa853 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
[email protected] 71654d8821 E4X, configured off, code-complete. 2004-11-17 07:43:01 +00:00
[email protected] 756c1fa290 Bug 207309 nsMemoryImpl::Alloc of 0: 'size' in jsdValue::GetProperties
r=shaver sr=shaver
2004-11-10 21:58:00 +00:00
[email protected] 612acbfd30 fixes bug 219400 "remove callers of nsServiceManager:: methods" r=bsmedberg 2004-11-07 23:59:35 +00:00
[email protected] 4ebbbeba35 Home sp before all OBJ_* call-outs (267797, r=shaver). 2004-11-05 23:16:37 +00:00
[email protected] 492d9b0dde Skip deleted/misidentified properties in js_obj_toSource (233483, patch from shaver+timeless, r=me). 2004-11-04 01:52:28 +00:00
[email protected] 591a1b4abb Toggle JSFRAME_ASSIGNING around setter call from inc/dec ops (267216, r=shaver). 2004-11-03 22:54:50 +00:00
[email protected] 41edd4cd6e eliminating uses of deprecated nsComponentManager:: methods (bug 267040), r=bsmedberg 2004-11-01 18:50:36 +00:00
[email protected] e546e3cce2 Auto-mark parent if it's revised by PreCreate in XPCWrappedNative::GetNewOrUsed (264577, r=dbradley). 2004-10-22 07:49:29 +00:00
[email protected] 88ab2c3d31 Checking in dbradley's patch for bug 265545 (r=jst, sr=me). 2004-10-22 07:29:44 +00:00
[email protected] ea2d24e51f Fix HasFinalReturn to handle labeled statements (265042, r=self). 2004-10-20 02:16:36 +00:00
[email protected] 83d7c2a378 Home sp above right JSOP_IN operand to protect it from GC (264995, rs=shaver). 2004-10-19 01:45:44 +00:00
[email protected] ca06f7e5eb *** empty log message *** 2004-10-15 13:33:02 +00:00
[email protected] ab7b75c96a Regression tests for Rhino bugs 2004-10-14 07:09:22 +00:00
[email protected] 8871150d38 Test suite for E4X from AgileDelta Inc, http://agiledelta.com/ : see bug 251113 2004-10-13 21:35:32 +00:00
[email protected] 8f559ffdf8 Fixing bug 246892. Prevent crash in xpconnect code due to a scriptable plugins being deleted while calling through a scriptable method on the plugin. [email protected], [email protected] 2004-10-12 04:30:09 +00:00
[email protected] 600ddce1aa build bustage fix, how mortifying 2004-10-12 03:49:28 +00:00
[email protected] 0e5ac32ad2 Bug 262189: fix JS component loader's error reporting up to be less-often
useless.  Also some warning fixes for gcc and quelling some
	    spew for myself.  r+sr=brendan.
2004-10-12 03:37:20 +00:00
[email protected] 6df7951177 Yet more JOF_DETECTING (259935, r=self). 2004-10-11 19:21:05 +00:00
[email protected] 54f61d8dea Fix E4X bustage where object property ids aren't converted to strings (263258, r=self). 2004-10-09 02:22:23 +00:00
[email protected] 0ec3252071 Instrument allocation a bit, DEBUG_brendan or METERING only change. 2004-10-06 21:03:35 +00:00
[email protected] 44536706ee Better XML string exclusion, plus js_default_str, based on codesighs (followup to 246441). 2004-10-05 16:57:13 +00:00
[email protected] 51cc8e5cc6 Use &dummy_sprop consistently (followup to 246441). 2004-10-05 11:44:14 +00:00
[email protected] d30a903493 Initial E4X check-in, configured off (246441, rs=shaver). 2004-10-05 10:19:07 +00:00
[email protected] 66eb9edbe9 Skip enumeration of properties deleted after for..in begins (261887, r=shaver). 2004-10-01 21:58:15 +00:00
[email protected] 3970a3e920 ECMA conformance fix: evaluate rvalue delete operands that might have side effects (261886, r=shaver). 2004-10-01 21:51:49 +00:00
[email protected] 28ebd37cd8 Fix for bug 110263 (static const NS_NAMED_LITERAL_STRING is not thread safe). Patch by dbradley, r=darin, sr=jst. 2004-10-01 09:08:15 +00:00
[email protected] aaf046b46e Undo last change, it broke ports and is not strictly speaking part of the fix for bug 253241. 2004-09-24 03:31:15 +00:00
[email protected] c286d222c6 Home sp always before calling js_ConcatStrings (261321, r/a=me). 2004-09-24 02:16:49 +00:00
[email protected] a8daea17a2 Check in patch from Nicholas Miell <[email protected]> for bug 253241 (r=shaver, a=asa). 2004-09-23 23:32:51 +00:00
[email protected] 785ef74fab Avoid recursive death in exn_toString (260541, r=shaver). 2004-09-21 01:18:00 +00:00
[email protected] 5b7dff8780 Make JSOP_SET{PROP,ELEM} be detecting (259935, r=shaver). 2004-09-21 00:25:46 +00:00
[email protected] a053770713 Fix function redeclaration and with deprecation warnings to apply to start of statement (256036, r=shaver). 2004-09-14 01:38:19 +00:00
[email protected] 1295a0267c Forbid line terminator between throw and the exception expression, per ECMA (256617, r=shaver). 2004-09-07 19:43:21 +00:00
[email protected] a2add96681 Checking in patch for bug 256501 from Igor Bukanov <[email protected]>, r=me. 2004-09-02 00:06:29 +00:00
[email protected] d585938edd Add JSRESOLVE_DECLARING and JSRESOLVE_CLASSNAME support for better DOM quirk emulation (257602, r=shaver). 2004-09-01 20:51:39 +00:00
[email protected] dca177b51a 256757 - misused printf causes crash [@ nsXPCWrappedJSClass::CheckForException]. r=sr=jst. 2004-08-30 20:50:24 +00:00
[email protected] 83fb9786b2 Fix catch decompilation, again (245308, r=shaver). 2004-08-29 18:00:24 +00:00