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

6548 Коммитов

Автор SHA1 Сообщение Дата
bob%bclary.com ebac4bd238 Initial add. Regression test for bug 274888, by sjoerd@w3future.com 2005-02-26 21:29:59 +00:00
brendan%mozilla.org 54a2788cca Cosmetic tweak. 2005-02-26 18:29:00 +00:00
brendan%mozilla.org 183bbc90c1 Fix from Igor Bukanov <igor@mir2.org> for 283064 (r=me). 2005-02-26 18:28:14 +00:00
bob%bclary.com 1bf2497189 Initial add. List of obsolete spidermonkey tests 2005-02-26 05:03:53 +00:00
bob%bclary.com 6955f242a3 Initial add. Regression test for bug 255245, by celsoaguiar@hotmail.com, brendan@mozilla.org 2005-02-26 04:59:58 +00:00
bob%bclary.com 2713955fe7 Initial add. Regression test for bug 233483, by m-wada@japan.com 2005-02-26 04:48:48 +00:00
brendan%mozilla.org db07ab86fe Deal with undefined as well as empty namespace prefix in GetNamespace (283349, r=igor, sr=shaver). 2005-02-25 01:19:35 +00:00
cbiesinger%web.de f5acf694ef 282339 patch by Frank Wein <bugzilla@mcsmurf.de> r=pschwartau
add a comment that these tests won't work in non-english locales
2005-02-24 19:13:36 +00:00
brendan%mozilla.org c1fb1d98d2 Fix almost-10-year-old lastIndex bug reported by Sjoerd Visscher <sjoerd@w3future.com> (283477, r=me). 2005-02-24 18:59:41 +00:00
bob%bclary.com e10ba6be91 Initial add. Regression test for bug 203278, by igor@mir2.org 2005-02-24 06:43:32 +00:00
bob%bclary.com 60489d268c Initial add. Regression test for bug 277779, by martin.honnen@arcor.de 2005-02-24 05:48:45 +00:00
bob%bclary.com 9817932d6e Initial add. Regression test for bug 277683, by martin.honnen@arcor.de 2005-02-24 05:46:57 +00:00
bob%bclary.com f437b5b9b0 Initial add. Regression test for bug 277664, by martin.honnen@arcor.de 2005-02-24 05:44:35 +00:00
bob%bclary.com c1d6aaec8e Initial add. Regression test for bug 277650, by martin.honnen@arcor.de 2005-02-24 05:42:20 +00:00
bob%bclary.com 12fff9a084 Initial add. Regression test for bug 3649, by mff@research.att.com 2005-02-24 05:38:10 +00:00
bob%bclary.com e9827afb15 Initial add. Regression test for bug 278873, by vogge@vlbg.dhs.org 2005-02-24 05:34:39 +00:00
bob%bclary.com bcf12cb6fe Initial add. Regression test for bug 278725, by silver@warwickcompsoc.co.uk, ajvincent@gmail.com, timeless@mozdev.org 2005-02-24 05:32:32 +00:00
bob%bclary.com 92c09498f0 Initial add. Regression test for bug 276103, by gianugo@apache.org 2005-02-24 05:29:06 +00:00
bob%bclary.com d01da14df9 Initial add. Regression test for bug 275378, by martin.zvieger@sphinx.at 2005-02-24 05:26:39 +00:00
brendan%mozilla.org 1bd5c48c3a Implement specialized Deutsch-Schorr-Waite under js_MarkXML to avoid stack overflow (280844, r=igor, sr=shaver). 2005-02-24 05:24:26 +00:00
bob%bclary.com dc27d0fc7c Initial add. Regression test for bug 274035, by jerfa@yahoo.com 2005-02-24 05:24:22 +00:00
bob%bclary.com f4839bb335 Initial add. Regression test for bug 271716, by cbiesinger@gmx.at 2005-02-24 05:21:47 +00:00
bob%bclary.com 8016c86dde Initial add. Regression test for bug 260541, by troy@entheossoft.com 2005-02-24 05:19:30 +00:00
bob%bclary.com 45c0da11ec Initial add. Regression test for bug 256798, by brendan@mozilla.org 2005-02-24 05:17:02 +00:00
bob%bclary.com 66e12a921e Initial add. Regression test for bug 256617, by igor@mir2.org 2005-02-24 05:15:09 +00:00
bob%bclary.com b22e533207 Initial add. Regression test for bug 256501, by igor@mir2.org 2005-02-24 05:13:11 +00:00
bob%bclary.com 1eebc52d4a Initial add. Regression test for bug 254974, by timeless@mozdev.org 2005-02-24 05:11:21 +00:00
bob%bclary.com 3c206eaa9d Initial add. Regression test for bug 254375, by timeless@mozdev.org 2005-02-24 05:09:32 +00:00
bob%bclary.com 1bff6eaec4 Initial add. Regression test for bug 252892, by archer@meta-comm.com, brendan@mozilla.org 2005-02-24 05:06:49 +00:00
bob%bclary.com ef60b126a9 Initial add. Regression test for bug 248444, by timeless@mozdev.org 2005-02-24 05:04:36 +00:00
bob%bclary.com 22dd185382 Initial add. Regression test for bug 247179, by jim@jibbering.com, malcolm-bmo@farside.org.uk 2005-02-24 05:02:35 +00:00
bob%bclary.com 736cfcc3a4 Initial add. Regression test for bug 246964, by brendan@mozilla.org, bzbarsky@mit.edu, steven.chapel@sbcglobal.net 2005-02-24 04:58:33 +00:00
bob%bclary.com 19720f591f Initial add. Regression test for bug 246911, by thingol@mail.ru 2005-02-24 04:55:50 +00:00
bob%bclary.com e7ec40859c Initial add. Regression test for bug 245795, by timeless@mozdev.org 2005-02-24 04:54:04 +00:00
bob%bclary.com 897e6e74bd Initial add. Regression test for bug 245308, by silver@warwickcompsoc.co.uk 2005-02-24 04:52:14 +00:00
bob%bclary.com 0cf0597ae5 Initial add. Regression test for bug 245113, by jerfa@yahoo.com 2005-02-24 04:49:50 +00:00
bob%bclary.com 03e3fce9c3 Initial add. Regression test for bug 244619, by hassman@czilla.cz 2005-02-24 04:45:09 +00:00
bob%bclary.com 8c0625e4ce Initial add. Regression test for bug 244470, by jerfa@yahoo.com 2005-02-24 04:42:41 +00:00
bob%bclary.com e47c9bf5f1 Initial add. Regression test for bug 243869, by ajvincent@gmail.com 2005-02-24 04:40:21 +00:00
bob%bclary.com c37340be0a Initial add. Regression test for bug 243389, by bugzilla@gemal.dk 2005-02-24 04:38:29 +00:00
bob%bclary.com 24ddcfaac0 Initial add. Regression test for bug 243174, by brendan@mozilla.org 2005-02-24 04:36:11 +00:00
bob%bclary.com e2a14775c7 Initial add. Regression test for bug 240317 2005-02-24 04:33:59 +00:00
bob%bclary.com e52e370f6a Initial add. Regression test for bug 238881, by brendan@mozilla.org 2005-02-24 04:31:56 +00:00
brendan%mozilla.org 8e1b9d4f60 Fix instanceof to throw a TypeError if the RHS doesn't have a [[HasInstance]] internal method, per ECMA-262 Ed. 3 (r=shaver). 2005-02-24 00:06:43 +00:00
bob%bclary.com 288c7a92c6 Initial add. Regression test for bug 237461, by archer@meta-comm.com 2005-02-23 22:51:45 +00:00
bob%bclary.com 52550015db Initial add. Regression test for bug 233483, by m-wada@japan.com 2005-02-23 22:48:26 +00:00
bob%bclary.com 6990c88acc Initial add. Regression test for bug 231518, by dragosan@dragosan.net, martin.honnen@arcor.de 2005-02-23 22:44:38 +00:00
bob%bclary.com 344c52f9fb Initial add. Regression test for bug 230216, by brendan@mozilla.org 2005-02-23 22:41:54 +00:00
bob%bclary.com 7f293b75f9 Initial add. Regression test for bug 230216, by igor@mir2.org 2005-02-23 22:40:21 +00:00
bob%bclary.com 39e2e84bf0 Initial add. Regression test for bug 229006, by dbaron@mozilla.org 2005-02-23 22:34:39 +00:00
bob%bclary.com f56848b2fd Initial add. Regression test for bug 203278, by igor@mir2.org 2005-02-23 22:32:31 +00:00
bob%bclary.com 43d45d8e7e Initial add. Regression test for bug 203278, by ash@huntwork.com 2005-02-23 22:30:40 +00:00
bob%bclary.com 1545bec39e Initial add. Regression test for bug 174709, by Q42.nl, martijn.martijn@gmail.com 2005-02-23 22:27:37 +00:00
bob%bclary.com 3625a5ccfc Initial add. Regression test for bug 162392. 2005-02-23 22:23:02 +00:00
brendan%mozilla.org 33c1ce26d6 Fix from Juergen Kreileder <jk@blackdown.de> for 32-bit processes on 64-bit OSes that map the heap up against the 0x100000000 wall (279273, r=shaver). 2005-02-23 21:36:10 +00:00
brendan%mozilla.org ad93cb5afa Avoid recycling an overlarge arena from the evil arena_freelist, in case the new consumer is itself oversized and therefore owns the entire allocation (283234, r=shaver). 2005-02-23 21:31:58 +00:00
bob%bclary.com 610f657d54 Initial add. Regression test for bug 10278. 2005-02-23 21:27:57 +00:00
brendan%mozilla.org e1a7049710 Specialize for QARG and QVAR types within JOF_NAME format in js_DecompileValueGenerator (281487, r=shaver). 2005-02-23 02:40:40 +00:00
brendan%mozilla.org aadbd332cf Null |obj| VM register for correct |this| binding (281930, r=shaver). 2005-02-22 23:25:49 +00:00
igor%mir2.org b4fca87aba Resolving bug 282595: patch from Juerg lehni <juerg@scratchdisk.com> to allow
for several setters for bean properties.
2005-02-18 23:06:39 +00:00
shaver%mozilla.org c6a1ca5969 Bug 273931: pop With objects from scope chain as appropriate, when resetting
stack depth due to exception-handling flow control jumps. r=brendan.
2005-02-18 16:06:49 +00:00
timeless%mozdev.org 3a6409e18e Bug 273953 Crash during GC after leaving page in URL
patch by dbradley@gmail.com r=jst sr=brendan
2005-02-18 06:39:11 +00:00
brendan%mozilla.org cad66b9106 Fix off-by-one-slot bug in logic guarding mark on obj->slots - 1 (279858, r=shaver, a=dbaron). 2005-02-17 19:07:59 +00:00
igor%mir2.org 344cf0f06e Implementing bug 274467: Add JavaScript stack trace to exceptions
The changes are based on that patch from Attila Szegedi, szegedia@freemail.hu.
2005-02-16 19:57:03 +00:00
igor%mir2.org 2a49a02214 Fixing bug 282447: patch from Attila Szegedi <szegedia@freemail.hu> to fix NullPointerException. 2005-02-16 12:11:42 +00:00
brendan%mozilla.org 203a9641ad Fix Detecting to cope with no active frames on cx (281984, r=jst). 2005-02-15 19:20:00 +00:00
gerv%gerv.net 70dc80657e Bug 236613: change to MPL/LGPL/GPL tri-license. 2005-02-13 00:07:56 +00:00
gerv%gerv.net e5d20862b7 Bug 236613: change to MPL/LGPL/GPL tri-license. 2005-02-12 20:11:18 +00:00
igor%mir2.org 6e090811b4 Fixing bug 281537, a regression introduced due to work on bug 280047. It was reported by Attila Szegedi, szegedia@freemail.hu, who also provided the initial patch. 2005-02-09 15:46:50 +00:00
igor%mir2.org 83dec59657 Implementing bug 281247: JDK compatibility is implemented through VMBridge class and its subclasses to avoid excessive reflection usage. 2005-02-07 07:34:32 +00:00
igor%mir2.org 8e479120c0 I removed unused Context argument from various SomeObject.init methods to decrease code bloat. 2005-02-06 01:56:46 +00:00
igor%mir2.org aeddcbb266 I chaged JavaAdapter to store ContextFactory in the proxy object directly instead of extracting it from scope. It ensures that the proper factory is used to reenter Context objects even if scope stored in the adapter is manipulated and no longer contains the reference to factory. 2005-02-06 01:14:24 +00:00
igor%mir2.org e266fe4eb2 Fixing bug 281067: patch from Attila Szegedi, szegedia@freemail.hu, to allow to garbage collect unused Rhino classes. 2005-02-04 15:53:05 +00:00
bryner%brianryner.com 67dba23ae4 Clean up unneeded REQUIRES (bug 73353). r+sr=dbaron. 2005-02-03 23:01:54 +00:00
brendan%mozilla.org ebf76c53ba Update JSNewResolveOp's comment to talk about the new JSRESOLVE_ flags. 2005-02-03 22:25:10 +00:00
gerv%gerv.net 21d4b2141a Bug 236613: change to MPL/LGPL/GPL tri-license. This checkin does not actually change any licenses, but makes indentation and comment-formatting fixes so that the relicensing script is able to parse all the license blocks in the js/ directory. Once the smoke has cleared, I'll do the second step. 2005-02-02 23:52:03 +00:00
darin%meer.net d67c211542 applying shaver's review nit for bug 235499 2005-02-02 22:22:45 +00:00
darin%meer.net dc09fbd58d landing xpconnect patch for bug 235499 "re-enable string buffer sharing between C++ and JS in xpconnect" r=shaver sr=jst 2005-02-02 22:20:28 +00:00
igor%mir2.org ce11e379b0 Fixing bug 280629: Compatibility patch to add Main.dispose() 2005-02-01 20:41:21 +00:00
nboyd%atg.com 4a4f5f52f6 Update link to ECMA standard 2005-02-01 18:49:56 +00:00
brendan%mozilla.org 0c5c5f6341 Fix GC_MARK_DEBUG-#ifdef'd code for E4X (timeless private bug). 2005-02-01 02:35:31 +00:00
brendan%mozilla.org f0cbc6e33b Improve GC_MARK_DEBUG strings a bit, tweak a comment. 2005-02-01 00:54:34 +00:00
brendan%mozilla.org d91d80c7ef Pass origobj, not obj, to OBJ_GET_PROPERTY for for-each-in on non-XML objects (bug reported by Martin Honnen, diagnosis by jband). 2005-01-31 07:19:07 +00:00
brendan%mozilla.org 338dcd3e52 Fix js_LineNumberToPC to cope with code reordering, especially in JSOP_CONDSWITCH (1113352, r=shaver). 2005-01-29 18:31:46 +00:00
dbaron%dbaron.org 8993baf11c Convert CR-LF and CR linebreaks to LF. 2005-01-28 20:01:46 +00:00
brendan%mozilla.org 449bc22ed5 Toggle JSOPTION_COMPILE_N_GO around compilation in JS_EvaluateUCInStackFrame (280086, r=shaver). 2005-01-28 18:14:05 +00:00
igor%mir2.org b482de83cc Implementing bug 280047: Undefined no longer implements Scriptable 2005-01-27 16:35:39 +00:00
igor%mir2.org 04510f108b Always use Undefined.instance and not Context.getUndefinedValue() for consistency. 2005-01-27 00:59:59 +00:00
igor%mir2.org 138a27ece8 Changing deprecated EcmaError.getErrorObject to return null for smaller footprint 2005-01-27 00:57:38 +00:00
igor%mir2.org 176ab5ae57 Fixing JavaDoc formating 2005-01-27 00:55:08 +00:00
brendan%mozilla.org d510e600cd s/DEBUG_brendan/DEBUG_notme/g 2005-01-25 19:39:45 +00:00
brendan%mozilla.org 74828633a8 Fix old bug in JSOP_CONDSWITCH codegen (278873, r=shaver). 2005-01-25 19:34:37 +00:00
brendan%mozilla.org 5555af3c9a Followup to fix for 123668, to handle newborns and mark small object slots before checking for stack-quota-exceeded (Deutsch-Schorr-Waite). 2005-01-25 09:02:22 +00:00
brendan%mozilla.org b466737c14 Fix js_GetArgsObject to skip debugger/eval frames (162392, r=shaver). 2005-01-25 05:56:37 +00:00
brendan%mozilla.org a51ea5bac1 Add getpda shell function for debugging. 2005-01-25 03:22:16 +00:00
brendan%mozilla.org 0f476ade97 Fix GC hole in JSOP_NAMEDFUNOBJ found by tellme.com folks (279636, r=jband). 2005-01-25 02:22:25 +00:00
nboyd%atg.com 6af68b420b Seppia 2005-01-24 15:46:44 +00:00
brendan%mozilla.org 7933c6fbca Back up one token after skipping a now-tokenized (now as of E4X) comment (279483, r=shaver). 2005-01-24 00:02:59 +00:00
igor%mir2.org 31d9030dd0 Reverting Ref to the original implementation which did not pass an additional
"Scriptable target" argument to Ref.(get|set|has|delete) methods. The idea was
to optimize away in many cases creation of Ref instances, but given that modern
JVM can GC short-lived objects efficiently it does not sound right to have code
complexity now in the hope of slightly more efficient implementation later.
2005-01-22 20:26:08 +00:00
igor%mir2.org e8ace4f904 Removal of GETVAR SETVAR -> NAME SETNAME transformations during code generation
for functions with activation records  as NodeTransformer never introduce VAR
node if activation would be created.
2005-01-22 00:06:00 +00:00
igor%mir2.org 735bd73b49 1. Removal of passing of unused scope argument to ScriptRuntime.in|instanceOf
2. Compacting interpreter loop via reusing common parts for binary operations.
2005-01-21 18:03:41 +00:00
igor%mir2.org 21a82d04e9 Removal of passing unused scope argument to ScriptRuntime.in|instanceOf 2005-01-21 18:02:11 +00:00
igor%mir2.org 077cf2b7b6 Removal of invoker optimization as under JDK >= 1.4 it does not make things
visibly faster and under GCJ it makes thinks worse.
2005-01-20 19:45:27 +00:00
nboyd%atg.com f5fec7715b adding xmoon 2005-01-20 18:30:29 +00:00
brendan%mozilla.org af45dbe52f Fix XMLToXMLString to cope with a tag name in a default namespace that is not the declared default namespace for the tag (277779, r=shaver). 2005-01-20 01:02:49 +00:00
brendan%mozilla.org d3f3eb9e90 Disallow PIs with target name 'xml' (277683, r=shaver). 2005-01-20 00:56:34 +00:00
brendan%mozilla.org 1df62774bd Enforce Unique Att Spec for XML in JS (277664, r=shaver). 2005-01-20 00:50:59 +00:00
brendan%mozilla.org 052d017c52 Allow xml:lang and other xml namespace ids (277650, r=shaver). 2005-01-20 00:46:17 +00:00
brendan%mozilla.org c4f9945247 Remove bogus assert in MarkGCThing, fix order of operation in js_NewObject to avoid losing the newborn root (278725, r=shaver). 2005-01-19 02:25:40 +00:00
igor%mir2.org bcf9f00787 Work on bug 264637: BaseFunction.functionName is removed as was suggested by Attila Szegedi <szegedia@freemail.hu> :
I assume "functionName" in BaseFunction could also undergo a similar treatment
of being replaced with an abstract getFunctionName() method, couldn't it? The
function name is either calculable from other data (FieldAndMethods, overloaded
case of NativeJavaMethod*, NativeJavaConstructor, InterpetedFunction) or fixed
(NativeRegExpCtor) in lots of subclasses.
2005-01-17 13:06:34 +00:00
brendan%mozilla.org 70ff275ddd Patch from Erik Fabert <jerfa@yahoo.com> to fix splice/concat/slice number-of-formals 'length' property values (274035, r=me). 2005-01-15 04:34:39 +00:00
igor%mir2.org b5245d48f0 Fixing bug 277537: implementing isXMLName() 2005-01-14 14:13:56 +00:00
nboyd%atg.com 549953071c Add Lombardi 2005-01-14 13:34:29 +00:00
igor%mir2.org 118352e5d7 Test case for isXMLName(s) 2005-01-13 19:42:38 +00:00
jst%mozilla.jstenback.com d813e46363 s/JS_FALSE/NULL/ in return value in JSParseNode* method. sr=me 2005-01-12 19:59:54 +00:00
jst%mozilla.jstenback.com 0472c0073e Fixing bug 265174. Quiet down compiler warnings on Linux x86_64. r+sr=brendan@mozilla.org 2005-01-12 19:56:32 +00:00
timeless%mozdev.org 38a2c35650 Bug 277887 r:\mozilla\js\src\liveconnect\jsj_JavaClass.c(549) : warning C4113: 'JSBool (__cdecl *)(JSContext *,JSObject *,jsid,JSObject ** ,JSProperty ** ,const char *,uintN)' differs in parameter lists from 'JSLookupPropOp'
fallout from bug 246441
r=brendan
2005-01-12 19:21:11 +00:00
timeless%mozdev.org 6b1df2ec98 Bug 277741 bad copy/paste of NS_ASSERT_OWNINGTHREAD(_class)
r=dbradley sr=dbaron
2005-01-12 19:20:01 +00:00
igor%mir2.org c09d14b3ba *** empty log message *** 2005-01-12 17:44:22 +00:00
igor%mir2.org f4c72a6056 Fixing bug 277935: now parser throws syntax error on assignments to descendants like x..y = 1 2005-01-12 14:21:06 +00:00
brendan%mozilla.org 33a75c4caa Make reserved identifiers a strict warning, not an error (240317, r=shaver). 2005-01-12 05:18:17 +00:00
igor%mir2.org d807c55305 Added check for a..b += xxx as well 2005-01-11 15:46:51 +00:00
igor%mir2.org e114a0bed4 Test case for Rhino bug 277935 2005-01-11 15:39:51 +00:00
igor%mir2.org 535ee87833 JavaDoc fix: refer to WrapFactory, not already removed WrapHandler 2005-01-11 10:50:36 +00:00
igor%mir2.org 8c1a6b5877 Less bloated implementation of Kit.semicolonSplit 2005-01-10 01:26:36 +00:00
igor%mir2.org 1b2509d0f0 Fix from Dave Russo <d-russo@ti.com>:
While investigating how Rhino loads Java packages I came across what
appears to be a "typo" bug in NativeJavaTopPackage.java; a missing
semicolon in a string results in minor performance degradation for
script accessing the java.lang.reflect and java.lang.io packages.
2005-01-10 01:25:26 +00:00
brendan%mozilla.org 3b52333710 Unregress default exception reporting (276061, r=shaver, a=asa). 2005-01-07 03:35:36 +00:00
brendan%mozilla.org 92552356eb Revamp the GC to fix E4X private data dueling GC bugs, to reduce malloc costs for small-ish objects and functions, and to pave the way for further GC wins (123668, r=shaver, TAKE 2). 2005-01-05 06:15:03 +00:00
brendan%mozilla.org 136eda6655 Always call the standard input 'typein', as xpcshell does, in error reports. 2005-01-05 04:29:35 +00:00
brendan%mozilla.org 412eb31b82 Back out, broke liveconnect at least. 2005-01-05 03:58:19 +00:00
brendan%mozilla.org 90eaa50664 Revamp the GC to fix E4X private data dueling GC bugs, to reduce malloc costs for small-ish objects and functions, and to pave the way for further GC wins (123668, r=shaver). 2005-01-05 02:56:36 +00:00
brendan%mozilla.org 98f555be58 Fix old GC hazards that bite venkman (277069, r=self). 2005-01-05 00:45:21 +00:00
brendan%mozilla.org 5d3435f4a6 Checking in shaver's patch for bug 275742: E4X for JS components, r=me. 2005-01-04 23:56:56 +00:00
cbiesinger%web.de b233fca20b Bug 276807 add DumpJSValue helper function for debugging
r=dbradley sr=brendan
2005-01-04 22:15:09 +00:00
brendan%mozilla.org b7db19beeb Fix a bogus assertion and related bogus code that bit dmose (246441). 2005-01-03 23:57:56 +00:00
brendan%mozilla.org 4a11eed32a - Fix GetNamespace to conform to the NOTE in ECMA-357 13.3.5.4 Step 4(a).
- Fix XMLToXMLString bug where ancdecls was not updated with a weak ref append
  when a namespace strong ref was appended to decls.  In ECMA-357, ancdecls is
  written out as (AncestorNamespaces U namespaceDeclarations), but here where
  ancestorNSes and decls are unioned early into ancdecls, we need to update
  the unioned set whenever decls is updated.

- Fix ECMA-357 glitch (suboptimal, arguably not an erratum) in ToXMLString
  where XML that uses the default namespace only is converted via toXMLString
  into a string serialization that redeclares that namespace using generated
  prefixes, for every node in the tree.  This is verbose, inefficient, and
  unnecessary.  A trivial tweak to 10.2.1 Step 12(a), to let namespace.prefix
  be the empty string if x.[[Name]].[[Prefix]] is undefined, fixes the bug.

- Const-ipate JSXMLArray * parameters starting with XMLToXMLString's, to be
  sure no one appends a strong ref to a weak-ref-holding |in| parameter.
2005-01-01 17:27:41 +00:00
gerv%gerv.net 709d4de4d5 Bug 236613: change to MPL/LGPL/GPL tri-license. 2005-01-01 16:48:30 +00:00
brendan%mozilla.org 601f8d102a Fix bogus assertion. 2005-01-01 05:45:55 +00:00
brendan%mozilla.org 73314eaa9f Preserve TCF_HAS_DEFXMLNS out of FunctionBody; don't turn comments and cdata into text when folding; disable JSOP_XMLOBJECT optimization for now (246441). 2004-12-31 09:00:41 +00:00
brendan%mozilla.org 3b9a4510d8 Cope with > 65535 local root stack items (246441 fallout). 2004-12-31 08:39:04 +00:00
brendan%mozilla.org 6200e200bf Refine last checkin's change to GetNamespace in light of Erratum (246441). 2004-12-31 08:30:01 +00:00
brendan%mozilla.org d04b609ab4 Default namespace and off-by-1 GeneratePrefix fixes (246441). 2004-12-31 05:27:50 +00:00
igor%mir2.org 4e4d678dc2 Removal of deprecated features including WrapHandler 2004-12-31 01:27:00 +00:00
igor%mir2.org 9ddca6ca8b Deprecated classes that are kept only for compatiblity is moved to a separated source tree to simplify their removal if necessary from compilation scope 2004-12-31 00:02:46 +00:00
igor%mir2.org 98401f483b Fixing JavaDoc for @deprecated methods to make documentation to look less ugly 2004-12-31 00:00:44 +00:00
brendan%mozilla.org 1b567da4f7 Propagate TCF_HAS_DEFXMLNS from parser to constant folder; call js_Mark from xml_mark (246441, r=shaver). 2004-12-30 17:44:41 +00:00
igor%mir2.org 3f3f612462 Context.toType is deprecated in favor of Context.jsToJava which throws EvaluatorException, not IllegalArgumentException.
In this way when native code implementing host objects calls Context.jsToJava the exception can be caught in JS and processed in in the same way as exceptions resulting from bad calls to LiveConnect Java objects.
2004-12-30 15:28:29 +00:00
brendan%mozilla.org 9db4d62ed6 Add JS_GetMethod to the JS API, to cope with E4X's breaking the var f=o.m;f.apply(o,arguments)===o.m() invariant; qualify bogus assert in jsemit.c to make it righteous; use JS_GetMethod from nsXPCWrappedJSClass::CallMethod (246441, r=me). 2004-12-29 03:34:26 +00:00
brendan%mozilla.org 83d1417cb3 Fix old tagify (html string helper) dependent string bug (276103, r=shaver). 2004-12-28 17:08:32 +00:00
brendan%mozilla.org f485c83da2 Turned back on HTML helpers, they are implemented by other browsers, and people use them (276030, r=self). 2004-12-28 16:43:51 +00:00
brendan%mozilla.org 931f64581c Propagate a flag induced by JSOPTION_XML into script and context version fields, for proper run- and compile-time consistency (275742, r=shaver). 2004-12-24 00:03:59 +00:00
brendan%mozilla.org 6ad6ec022b Turn off the old, funky, unused HTML string helpers (s.blink(), etc.); turn on E4X (246441, r=shaver). 2004-12-23 00:19:38 +00:00
brendan%mozilla.org 3014f0bbad Comment fixes/tweaks. 2004-12-21 01:54:53 +00:00
brendan%mozilla.org cde2e51791 Twiddle TSF_OPERAND when peeking after switch case label, to scan regexp literal at start of labeled statement (275378, tachyonal r=shaver). 2004-12-21 01:47:52 +00:00
dbaron%dbaron.org 1a43dc79c0 Fix misspellings of 'pseudo' in comments. Bug 106386. Patch by Alex Vincent <ajvincent@gmail.com>. r=timeless sr=peterv 2004-12-19 21:45:51 +00:00
brendan%mozilla.org 9d1be44980 Remove #if 0'd E4X debugging code I forgot to remove earlier. 2004-12-18 23:02:11 +00:00
brendan%mozilla.org 9d4a1b1f0a Followup checkin to reset foreach flag when catching an exception thrown partway thru the for-in code. 2004-12-18 22:55:12 +00:00
brendan%mozilla.org e7eeeaea9c Tighten up js_IsXMLName error-suppressing logic a bit. 2004-12-18 20:31:38 +00:00
brendan%mozilla.org 1fb4e8ca64 Eliminate some stupid GCC warnings, tighten up code at label out. 2004-12-18 03:10:58 +00:00
brendan%mozilla.org d1291966ce - Added strict warning "reference to undefined XML name {0}" to cope with
ECMA-357 botch where * or @b or (given valid namespace reference n) n::id
  results in undefined, instead of a TypeError.

- Lazily bootstrap AnyName and AttributeName classes, instead of leaving the
  former uninitialized, and initializing the latter only if QName is init'ed.
  These classes, representing ECMA-357 internal types, must be initialized
  in order to string conversion and default value on them to return useful
  results.  So this change also requires the shared qname_toString to cope
  with these classes, which ape QName in having a JSXMLQName as private data.

- Revise Filtering Predicate Expressions bytecode schema to avoid bogo-script
  creating in js_FilterXMLObject.  With a new JSOP_ENDFILTER bytecode acting
  in lieu of JSOP_POPV, but also exiting the nested js_Interpret() call, the
  runtime can avoid trying to fake a JSScript for the subsequence of script
  bytecode in parens in x.(e), that contains the bytecode for e plus the pop
  or endfilter op.

  This requires a historic reparameterization of js_Interpret to take the
  starting pc!  I cleaned up order of declaration, use, and useless init nits
  for a few variables while messing with it.

- Based on the above change, fix the decompiler to handle filtered predicate
  expressions -- that code was stubbed out till now, and I forgot to go back.
  All better now, especially thanks to JSOP_ENDFILTER.

- Also while fixing filtered predicates, eliminate the useless TOK_RP parse
  node above the parenthesized expression, to avoid a JSOP_GROUP bytecode.

- Fix js_GetAttributeNameObject so it doesn't take over its QName parameter's
  object and rebind it to an object of class AttributeName -- instead, clone
  the qn if necessary.  This is important to cope with the errata, noticed a
  while ago but finally recorded:

9.2.1.2 Step 2(e)(i, ii),
9.2.1.2 Step 7(e)(i),
9.2.1.3 Step 2(b)(ii)(1)(a)
        All uses of a.[[Name]] for an attribute a in these sections that pass
        that QName object to [[Delete]] must pass an AttributeName cloned from
        a.[[Name]].  The [[Name]] internal property is always a QName instance
        and never an AttributeName or AnyName instance.  But [[Delete]] will
        not operate on x.[[Attributes]] when given a QName by these sections,
        so a child could be wrongly deleted instead of the attribute of the
        same name.

  This rework exposed a bug in the XML.prototype.name() impl, where it was
  returning an AttributeName, not a QName, for attribute-class XML objects.
  Clearly wrong -- the E4X spec makes plain early on that [[Name]] is always
  a QName -- but the spec and e4x testsuite seemed to require it due to the
  above-noted errata.
2004-12-18 02:28:21 +00:00
brendan%mozilla.org 1efd42a892 Implement XML NCRs, reject unknown entities (E4X code, not enabled yet). 2004-12-16 18:28:23 +00:00
brendan%mozilla.org 91272a112c Fix for bug 244619 from aviary/1.7 branches, r=shaver. 2004-12-16 00:25:03 +00:00
brendan%mozilla.org 2688921660 Robustifying followup to last checkin (244470). 2004-12-15 23:32:39 +00:00
bryner%brianryner.com d9626f6746 Add support for using gcc's visibility pragma to treat all function and method declarations as "hidden" unless declared otherwise. Create wrappers for system headers that cause them to be treated as default-visibility declarations. This gives a substantial code size and performance win on compilers that support it, and should show up on the gruff tinderbox. Bug 273336, r=darin sr=dbaron. 2004-12-15 05:52:44 +00:00
bsmedberg%covad.net 60567bb185 Bug 275605 - libxul step 3 (all of tier 9, except libmozjs.so which will remain separate indefinitely) r=darin 2004-12-15 04:07:01 +00:00
brendan%mozilla.org fc978ab89c Silence a DEBUG_brendan blurb. 2004-12-15 02:59:00 +00:00
brendan%mozilla.org c1616cded1 Fix JSMSG_BAD_OCTAL's type, and reword JSXML_BAD_XMLLIST_PUT to simplify. 2004-12-15 02:57:21 +00:00
brendan%mozilla.org c29ebb1a17 Avoid indexing into fp->vars with wrong atomIndex (244470, r=self). 2004-12-14 21:28:22 +00:00
igor%mir2.org 31dea64eae Added info on seal() 2004-12-14 14:52:40 +00:00
brendan%mozilla.org ed1bb5483a Protect near-newborns from GC when defining function objects, and fix stack local root management under JSOP_INITCATCHVAR for similar reasons -- to avoid last-ditch GC nesting and collecting a near-newborn (271716, r=shaver). 2004-12-12 04:46:01 +00:00
brendan%mozilla.org e10cd22961 Unroot on failure exit paths from js_ReportUncaughtException (274096, r=shaver). 2004-12-11 22:00:34 +00:00
bmlk%gmx.de f0f7103d21 backout of shavers checkin as it breaks windows build and dbradley thinks that Quit took a parameter that was to be the return value of XPCShell? 2004-12-11 06:42:39 +00:00
shaver%mozilla.org bd3f0080d6 Bug 274136: add setExitCode global function for controlling xpcshell's exit
status.  Somewhere out there, the god of automated tests cracked a smile.
r=dmose
2004-12-11 03:32:10 +00:00
timeless%mozdev.org ca6d8b72e2 Bug 241171 Add error reporting and handling to PerlConnect
r=shaver
2004-12-11 00:50:53 +00:00
brendan%mozilla.org 02bc4b6f82 Fix SetFunctionSlot to use mutating change-property-attrs call (273963, r=jband). 2004-12-10 04:07:49 +00:00
nboyd%atg.com 05a7072e79 Add HttpUnit and HtmlUnit 2004-12-10 01:52:18 +00:00
nboyd%atg.com f670af373e remove stale link 2004-12-10 01:35:05 +00:00
brendan%mozilla.org 54e9fe4050 Null, not false (fix copy-paste error). 2004-12-10 01:31:16 +00:00
bsmedberg%covad.net 79241940e8 Bug 273876 - libxul step 2 (everything through widget, except spidermonkey) r=darin; again, this should not affect non-xulrunner trees. 2004-12-09 19:28:35 +00:00
brendan%mozilla.org 1c34b873aa Report uncaught Error with proper message, filename, lineno (243869, r=shaver). 2004-12-09 02:19:53 +00:00
brendan%mozilla.org e5f2626c46 Expand tabs. 2004-12-09 01:32:19 +00:00
nboyd%atg.com 37492ff65e Conform to style guide 2004-12-08 03:45:55 +00:00
shaver%mozilla.org 649bcf9048 Bug 272294: use backstage pass in xpcshell, for higher-fidelity reproduction
of the environment that privileged JS runs in when in the browser, etc.
r=dbradley.
2004-12-07 18:13:02 +00:00
igor%mir2.org 90e539e23a 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 5c38e1a00c 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 ec32e80f2d 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 7d5a5668f0 Fiddle with comments and cosmetics. 2004-12-06 18:42:30 +00:00
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