6681 Commits

Author SHA1 Message Date
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
mrbkap%gmail.com
c0f9f832aa Narcissus can now run the Javascript tests, to some extent. Fix a couple of bugs found by the js tests (we were unable to parse the generated function resulting from new Function() and String.fromCharCode was not defined). evaluate() now returns its argument if it isn't a string (to catch things like evaluate(load(...))).
git-svn-id: svn://10.0.0.236/trunk@175726 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-07 00:53:44 +00:00
brendan%mozilla.org
52a48f937b Rename FunctionDeclaration to FunctionDefinition, since it handles declarations, statements, and expressions (mimicing ECMA).
git-svn-id: svn://10.0.0.236/trunk@175724 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-07 00:21:09 +00:00
timeless%mozdev.org
51b0fa80b0 Bug 283533 OOM crash [@ XPCIDispatchClassInfo::GetInterfaces]
patch by b.jacques@planet.nl r=shaver sr=shaver a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@175698 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-06 17:47:27 +00:00
mrbkap%gmail.com
2cd304ac65 bug 299781: Implement a -e <script> option in the js shell and xpc shell, like perl. Also implement -x in the xpc shell. r=shaver a=brendan
git-svn-id: svn://10.0.0.236/trunk@175680 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-06 05:51:07 +00:00
brendan%mozilla.org
8e2a6eb316 Fix * and function:: magic object management (299593, r+sr=bz/shaver).
git-svn-id: svn://10.0.0.236/trunk@175675 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-06 04:49:35 +00:00
bzbarsky%mit.edu
bb4b89c868 Juggle the proto chain for XPCNativeWrapper a bit. Bug 299520, r=jst, sr+a=brendan
git-svn-id: svn://10.0.0.236/trunk@175674 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-06 04:03:17 +00:00
brendan%mozilla.org
f9682de5de Unregress indirect eval for benign cases such as venkman chrome calling content eval (293933, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@175673 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-06 03:14:08 +00:00
jst%mozilla.jstenback.com
ae9379ea3e Fixing bug 299450. Add protection for __proto__. r=bzbarsky@mit.edu, sr+a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@175666 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-06 00:10:24 +00:00
mrbkap%gmail.com
1eb8993931 bug 299644: Array.prototype.concat() plugs holes in the existing array.
r+a=brendan


git-svn-id: svn://10.0.0.236/trunk@175642 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-05 21:25:12 +00:00
brendan%mozilla.org
5c307ee46d Defend against [[DefaultValue]] divergence (295666, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@175641 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-05 21:18:13 +00:00
nboyd%atg.com
63fa8fd866 Add Celware
git-svn-id: svn://10.0.0.236/trunk@175627 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-05 19:25:13 +00:00
brendan%mozilla.org
07a333f7a7 Enumerate prototype per ECMA-262, since it is lazily defined via resolve (299642, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@175591 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-05 04:06:07 +00:00
igor%mir2.org
5099841bc8 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@175554 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-03 19:18:39 +00:00
brendan%mozilla.org
5a6460d3a4 Fix expression statement (SEMICOLON) nodes to start and end at the same source index as their expression child.
git-svn-id: svn://10.0.0.236/trunk@175528 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-02 17:26:00 +00:00
bob%bclary.com
5304702739 really fix testcase for bug 299209
git-svn-id: svn://10.0.0.236/trunk@175520 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-02 11:10:16 +00:00
bob%bclary.com
2643a7291c fix test case to eval entire loop, bug 299209
git-svn-id: svn://10.0.0.236/trunk@175519 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-02 10:59:51 +00:00
bob%bclary.com
b086faba7e bug 299209, since new behavior is Syntax Error instead of crash, change test to eval expression and catch eval error.
git-svn-id: svn://10.0.0.236/trunk@175518 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-02 08:56:41 +00:00
mrbkap%gmail.com
60bb3047c4 Provide snarf and load functions.
git-svn-id: svn://10.0.0.236/trunk@175516 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-02 04:55:29 +00:00
brendan%mozilla.org
37800d2f0e Use non-greedy closure to match C-style comments.
git-svn-id: svn://10.0.0.236/trunk@175503 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-01 23:00:35 +00:00
brendan%mozilla.org
6030ac066a Never mind\!
git-svn-id: svn://10.0.0.236/trunk@175495 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-01 20:48:23 +00:00
timeless%mozdev.org
ab71febd39 Bug 283532 OOM crash [@ jsdValue::GetProperties]
patch by b.jacques@planet.nl r=rginda sr=brendan a=brendan


git-svn-id: svn://10.0.0.236/trunk@175474 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-01 05:12:47 +00:00
brendan%mozilla.org
e39a1d917e Nits picked for 294893 (thanks to bz for reminding me).
git-svn-id: svn://10.0.0.236/trunk@175470 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-01 04:45:11 +00:00
brendan%mozilla.org
45a31e7b07 Disallow anonymous functions in declaration or statement context (299209, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@175418 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-30 20:48:15 +00:00
timeless%mozdev.org
ae18ff3711 Bug 283534 OOM crash [@ xpcarraytest]
patch by b.jacques@planet.nl r=shaver sr=shaver a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@175414 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-30 20:37:11 +00:00
brendan%mozilla.org
3d960a8255 Add function statements, an ECMA Ed. 3 extension supported by SpiderMonkey.
git-svn-id: svn://10.0.0.236/trunk@175395 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-30 18:16:19 +00:00
shaver%mozilla.org
61449d069a Bug 296374: patch from jag@tty.nl to fix mingw/vc2005 bustage from initial
landing, r+a=me.


git-svn-id: svn://10.0.0.236/trunk@175387 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-30 11:46:15 +00:00
bob%bclary.com
59b1b1f13d anonymous function expression statement => JS stack overflow, bug 299209. Test by Paul Kurczaba
git-svn-id: svn://10.0.0.236/trunk@175383 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-30 07:00:34 +00:00
shaver%mozilla.org
4f9420d3a2 Bug 296374: move evalInSandbox, reportError, lookupMethod to new Components.util
object, with deprecation-warning forwarding for rE and lM.
r=caillon,dbradley,bsmedberg;a=bsmedberg.


git-svn-id: svn://10.0.0.236/trunk@175292 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 14:23:03 +00:00
mconnor%steelgryphon.com
33da47b7f3 bug 298478 - Downloads fail with ...could not be saved, patch by jst, r=shaver, sr=dveditz, a=drivers
git-svn-id: svn://10.0.0.236/trunk@175219 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-28 15:21:31 +00:00
bob%bclary.com
0a6bd82422 Modify js/tests/js1_2/function/Function_object.js, js/tests/js1_2/function/tostring-1.js, js/tests/js1_2/function/tostring-2.js, js/tests/js1_5/Regress/regress-245795.js, js/tests/js1_5/Regress/regress-252892.js to remove expectation of leading and trailing newline in Function.prototype.toString. bug 111816
git-svn-id: svn://10.0.0.236/trunk@175168 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-27 15:16:45 +00:00
igor%mir2.org
eb4d98d0a2 1. Added ContextFactory.getApplicationClassLoader()/initApplicationClassLoader() for simpler class loader customization.
2. Context.getApplicationClassLoader() now uses ContextFactory.getApplicationClassLoader() and also tries ContextFactory subclass as the last resort of loader guessing.


git-svn-id: svn://10.0.0.236/trunk@175160 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-26 22:57:31 +00:00
igor%mir2.org
3537a00756 Added XML and XMLList to the exclusion list
git-svn-id: svn://10.0.0.236/trunk@175159 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-26 22:51:49 +00:00
igor%mir2.org
006744f62c Fix for bug 290034: JavaScriptException should not be wrapped inside
Context.throwAsScriptRuntimeEx


git-svn-id: svn://10.0.0.236/trunk@175155 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-26 21:32:42 +00:00
igor%mir2.org
2c19264f37 When printing parse tree for debugging, include node number with target printout
git-svn-id: svn://10.0.0.236/trunk@175089 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-24 10:43:44 +00:00
igor%mir2.org
176aef80b2 Optimezer-only token are moved back to Token for simpler debugging.
git-svn-id: svn://10.0.0.236/trunk@175088 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-24 09:40:09 +00:00
igor%mir2.org
26b5f933a0 Patch from Attila Szegedi <szegedia@freemail.hu> based on the suggestion from Grzegorz Lukasik <hauserx@gmail.com> to fix bug 292324 "ArrayIndexOutOfBoundsException while compiling a script".
git-svn-id: svn://10.0.0.236/trunk@175086 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-24 09:10:52 +00:00
igor%mir2.org
dc33c1f75b Patch from Michael Scott <mscott@ti.com>, Texas Instruments:
> I work in a group that re-packages the Rhino Debugger as part of a set
> of "C"/JavaScript-based configuration tools for developing embedded
> software. We have had a long-standing problem with setting
> breakOnException, breakOnEnter, and breakOnReturn flags within the debug
> engine and not having them in sync with the gui debug menu checkboxes. I
> have fixed this for our use and have attached the updated Main.java
> file. The change simply sets the checkbox selected state along with the
> dim flags.


git-svn-id: svn://10.0.0.236/trunk@175085 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-24 08:57:38 +00:00
mrbkap%gmail.com
1fbc85ce3b bug 111816: Function.prototype.toString returns extra newlines. Moving the newlines into Decompile to preserve the output of new Script().toString(). r=shaver sr+a=brendan
git-svn-id: svn://10.0.0.236/trunk@175050 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-23 16:30:25 +00:00