6919 Commits

Author SHA1 Message Date
bob%bclary.com
31e7611740 ECMA 262-3 12.4 - wrap function expressions in parens since expression statements can not begin with a comma or function keyword
git-svn-id: svn://10.0.0.236/trunk@176723 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-28 01:14:32 +00:00
mrbkap%gmail.com
5973774e54 bug 302412: Make sure to call QuoteString on XML strings so non-ASCII strings get properly escaped. Prefer to use small precedences instead of the op = JSOP_NOP hack in the decompiler. JSOP_JSEXPR is a bad name for a bytecode, use the more-consistent name JSOP_STARTXMLEXPR. r+a=brendan
git-svn-id: svn://10.0.0.236/trunk@176720 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-28 00:38:40 +00:00
bob%bclary.com
014735257f function prototypes are now enumerable, bug 299642. Hat tip to mrbkap
git-svn-id: svn://10.0.0.236/trunk@176710 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-27 22:28:25 +00:00
mrbkap%gmail.com
daf2306f91 bug 302097: E4X toString incorrectly quotes JS tag expressions that are used as attributes. r+a=shaver
git-svn-id: svn://10.0.0.236/trunk@176679 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-27 16:10:26 +00:00
mrbkap%gmail.com
843d045531 bug 301692: E4X toString quotes the returned XML string. r+a=shaver
git-svn-id: svn://10.0.0.236/trunk@176633 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-26 20:43:09 +00:00
wr%rosenauer.org
bcb86c51bf Bug 302173 JS engine doesn't work on PPC/Linux because of gcc optimization, r+a=shaver
git-svn-id: svn://10.0.0.236/trunk@176609 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-26 13:28:08 +00:00
joshmoz%gmail.com
9c85748c29 export MACOSX_DEPLOYMENT_TARGET and kill MACOS_DEPLOYMENT_TARGET. Allows us to build on x86 Macs right out of cvs (note that we still crash a lot straight from cvs, but it runs). Patch by Mark Mentovai. b=298543 r=josh sr=peterv a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@176488 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-23 21:17:40 +00:00
mrbkap%gmail.com
c5486f21c2 bug 301574: Allow XML mode to be enabled explicitly by the XML constructor. r+a=brendan
git-svn-id: svn://10.0.0.236/trunk@176462 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-22 20:22:28 +00:00
brendan%mozilla.org
458ac547a0 No silent failures! (301553, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@176443 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-22 16:55:15 +00:00
brendan%mozilla.org
d4ba64d1c4 Expand entities only in TSF_XMLONLYMODE (r=mrbkap, who helped a great deal; a=me).
git-svn-id: svn://10.0.0.236/trunk@176412 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-21 22:15:36 +00:00
shaver%mozilla.org
5814459ec3 Bug 301545: avoid crash when attribute-op name collides with local var or arg
by taking an early out from LookupArgOrVar for JSOP_QNAMEPART. r+a=brendan.


git-svn-id: svn://10.0.0.236/trunk@176405 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-21 19:18:15 +00:00
brendan%mozilla.org
b3dc50ae81 Fix js_FilterXMLList to save and restore fp->spbase (301596, r+a=shaver).
git-svn-id: svn://10.0.0.236/trunk@176404 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-21 19:14:30 +00:00
joshmoz%gmail.com
629699c509 don't use regparm on i386 Mac OS X. Patch by Apple Computer, Inc. r=josh r=smfr sr=bsmedberg a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@176401 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-21 19:02:52 +00:00
shaver%mozilla.org
f21971c8c0 Bug 301353 (followup): return value from JS_ThrowReportedError, telepathic
r=brendan, a=shaver.


git-svn-id: svn://10.0.0.236/trunk@176332 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-20 15:35:13 +00:00
mrbkap%gmail.com
7dd36d494d bug 301340: Use public apis to fix link errors on Windows. r+a=brendan
git-svn-id: svn://10.0.0.236/trunk@176309 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-20 04:15:42 +00:00
mrbkap%gmail.com
27b88bc15b bug 300858: Make sure to update all_strings so that we don't try to treat a JSVAL_HOLE as a JSString in sort_compare_strings. Instead, arrays composed of strings and holes should go through sort_compare. r+a=brendan
git-svn-id: svn://10.0.0.236/trunk@176308 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-20 04:06:51 +00:00
mrbkap%gmail.com
98f7afec5e bug 300841: Provide a readline function to allow scripts run under the js shell to access stdin. r+a=brendan
git-svn-id: svn://10.0.0.236/trunk@176306 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-20 03:51:45 +00:00
brendan%mozilla.org
111193296e Fix Components.utils.evalInSandbox bugs: 1) GC'ing after even eval blows performance, no need; 2) borrowing the calling cx's error reporter doesn't work, we must turn uncaught exception errors back into thrown exceptions on the calling cx (301353, r+sr+a=shaver).
git-svn-id: svn://10.0.0.236/trunk@176305 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-20 03:35:40 +00:00
pete.zha%sun.com
64481cb7e3 bug=297750 wrong sequence of declaration in union fd_twoints on x86
r/sr/a=brendan@mozilla.org
patch=nian.liu@sun.com


git-svn-id: svn://10.0.0.236/trunk@176304 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-20 03:18:59 +00:00
bob%bclary.com
e90d57b3e4 tweak system to place redirect_command after stdout redirect, bug 301346
git-svn-id: svn://10.0.0.236/trunk@176303 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-20 02:27:42 +00:00
bob%bclary.com
ad848a16f2 change jsDriver.pl to use system instead of open for executing js shell, bug 301346. r=mrbkap
git-svn-id: svn://10.0.0.236/trunk@176292 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-19 23:03:12 +00:00
bzbarsky%mit.edu
aba621f2dc Preserve XPCNativeWrappers when "expando" properties are set on them. Bug
295937, r=shaver, sr+a=brendan


git-svn-id: svn://10.0.0.236/trunk@176280 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-19 21:40:33 +00:00
brendan%mozilla.org
04fd817184 Restore JSClass.addProperty compatibility: it can mutate the nominal initial value (296967, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@176272 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-19 21:13:19 +00:00
mrbkap%gmail.com
f2634245c8 bug 301204: Array.prototype.reverse is broken. Also fix a bug in Array.prototype.slice, when begin > end. r=shaver a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@176209 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-18 18:44:22 +00:00
brendan%mozilla.org
6e559790d9 Back out last patch to see whether luna turns green from orange.
git-svn-id: svn://10.0.0.236/trunk@176166 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-16 05:41:35 +00:00
mrbkap%gmail.com
a22cf2e246 bug 298286: JS_ReportCompileErrorNumber doesn't deal with jschar arguments. This fixes error reporting in jsregexp.c. r+a=brendan
git-svn-id: svn://10.0.0.236/trunk@176165 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-16 02:22:55 +00:00
mrbkap%gmail.com
9b496854e0 bug 289933: make regexps and script objects be of type 'function' to imitate IE. r+a=brendan
git-svn-id: svn://10.0.0.236/trunk@176164 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-16 02:03:26 +00:00
brendan%mozilla.org
53d20fcae4 Avoid entraining garbage in getter/setter slots by eliminating the slot (300562, r=jst, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@176159 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-15 22:31:44 +00:00
peterv%propagandism.org
855fe9b8e1 Fix for bug 300550 ("toString" enumerable on window.location). r=jst, sr=brendan, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@176136 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-15 14:43:56 +00:00
brendan%mozilla.org
3095db0430 Followup fix to 300008 (300867, r+a=me).
git-svn-id: svn://10.0.0.236/trunk@176122 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-15 06:25:58 +00:00
alecf%flett.org
216c3c8380 fix for crash in xpcshell in optimized builds, bug 300829
use free() rather than nsMemory::Free() to free it from the right pool
r/sr/a=shaver


git-svn-id: svn://10.0.0.236/trunk@176112 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-14 21:03:09 +00:00
mrbkap%gmail.com
171793809a Part of bug 300736: Reflect Narcissus' evaluate in the global object since we expose it natively in the shell now. r=brendan
git-svn-id: svn://10.0.0.236/trunk@176085 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-14 07:22:58 +00:00
brendan%mozilla.org
65d959f55e Fix subtle-ish bugs to do with ECMA-262 10.1.8 (292215, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@176073 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-14 00:56:33 +00:00
brendan%mozilla.org
4a8cf75e18 Fix hard case of formal param and local function with same name (299639, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@176072 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-14 00:47:41 +00:00
brendan%mozilla.org
a0e2f1925c Fix left operand of for/in loop control evaluation order bug (299641, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@176071 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-14 00:44:27 +00:00
bzbarsky%mit.edu
38c6f4f8fa Allow setting "expando" properties on XPCNativeWrapper. Bug 300325, r=jst,
sr+a=brendan


git-svn-id: svn://10.0.0.236/trunk@176053 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-13 21:10:37 +00:00
mrbkap%gmail.com
d3e8d12a04 bug 299898: Get Narcissus running the js tests. This adds a way for it to load scripts (using snarf) relative to the calling script (such as js.js). r=brendan a=shaver
git-svn-id: svn://10.0.0.236/trunk@176003 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-13 16:49:02 +00:00
mrbkap%gmail.com
dbe140bc8c bug 299738: Fix jsarray.c to not fill holes in arrays. r=brendan a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@175997 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-13 16:38:46 +00:00
mrbkap%gmail.com
361f423438 bug 300534: Internal Narcissus functions show up in objects' prototypes. This fixes a failure on the js testsuite and also fixes Narcissus' failure on SpiderMonkey's bug 299641. r=brendan
git-svn-id: svn://10.0.0.236/trunk@175983 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-13 02:46:10 +00:00
brendan%mozilla.org
4b5088f9d3 Oops, tree wasn't open -- Chase needs to pull again, so backing out temporarily.
git-svn-id: svn://10.0.0.236/trunk@175981 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-13 02:12:28 +00:00
brendan%mozilla.org
bbe7f97594 Fix arg vs. nested function hard case 299639, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@175977 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-13 02:00:05 +00:00
mrbkap%gmail.com
a0064def24 bug 299898: Allow the js testsuite to be run through Narcissus. To do so, give the -n or --narcissus (=optional/path) to the test driver along with the shell, and Narcissus will be run through the shell. r=bclary
git-svn-id: svn://10.0.0.236/trunk@175940 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-12 00:23:45 +00:00
brendan%mozilla.org
15ddfa152d Add a subsumes relation to principals so JS can handle all cases when checking indirect eval (and the like) calls (300008, r=caillon/dveditz, sr/a=shaver).
git-svn-id: svn://10.0.0.236/trunk@175859 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-08 23:26:36 +00:00
bzbarsky%mit.edu
f2a6cff745 Clear the global objects when unrooting them so that we don't leak via cycles
through the global (which is the parent of the proto for various functions on
the one hand and references various prototypes on the other hand).   Bug
300023, r=shaver, sr=brendan, a=asa


git-svn-id: svn://10.0.0.236/trunk@175854 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-08 20:39:02 +00:00
mrbkap%gmail.com
53ea386ea4 bug 300025: Fix a couple of small bugs in editline. r+a=shaver
git-svn-id: svn://10.0.0.236/trunk@175805 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-08 01:07:55 +00:00
joshmoz%gmail.com
fd91dae49d remove XP_MAC stuff from js. b=281889 r=brendan a=brendan
git-svn-id: svn://10.0.0.236/trunk@175790 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-07 22:35:40 +00:00
brendan%mozilla.org
d2aceeed37 Add dummy or first params to constructors so they have the right arity (length property).
git-svn-id: svn://10.0.0.236/trunk@175786 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-07 21:47:59 +00:00
shaver%mozilla.org
b47ab798b9 Bug 299980: rename Components.util to Components.utils to match other
Components children, and developer expectation. telepathic-r=brendan,
a=bsmedberg.


git-svn-id: svn://10.0.0.236/trunk@175778 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-07 19:34:35 +00:00
roc+%cs.cmu.edu
5697c7eede Bug 299750. Fix gcc4 warnings about unused variables. r=brendan,a=brendan,patch by Wolfgang Rosenauer
git-svn-id: svn://10.0.0.236/trunk@175769 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-07 18:26:28 +00:00
brendan%mozilla.org
506a801046 Keep Activation objects from being polluted by native Object.prototype props (using bug 299898, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@175728 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-07 07:29:21 +00:00