brendan%mozilla.org
68f0f9e55c
Unregress indirect eval for benign cases such as venkman chrome calling content eval (293933, r=shaver).
2005-07-06 03:14:08 +00:00
jst%mozilla.jstenback.com
1c641adb33
Fixing bug 299450. Add protection for __proto__. r=bzbarsky@mit.edu, sr+a=brendan@mozilla.org
2005-07-06 00:10:24 +00:00
mrbkap%gmail.com
93319239ed
bug 299644: Array.prototype.concat() plugs holes in the existing array.
...
r+a=brendan
2005-07-05 21:25:12 +00:00
brendan%mozilla.org
dd6effa86a
Defend against [[DefaultValue]] divergence (295666, r=shaver).
2005-07-05 21:18:13 +00:00
nboyd%atg.com
7c1bba9102
Add Celware
2005-07-05 19:25:13 +00:00
brendan%mozilla.org
e026058aff
Enumerate prototype per ECMA-262, since it is lazily defined via resolve (299642, r=shaver).
2005-07-05 04:06:07 +00:00
igor%mir2.org
997b9651be
*** empty log message ***
2005-07-03 19:18:39 +00:00
brendan%mozilla.org
0cb5241ec3
Fix expression statement (SEMICOLON) nodes to start and end at the same source index as their expression child.
2005-07-02 17:26:00 +00:00
bob%bclary.com
2e570bf83e
really fix testcase for bug 299209
2005-07-02 11:10:16 +00:00
bob%bclary.com
cd701fcee9
fix test case to eval entire loop, bug 299209
2005-07-02 10:59:51 +00:00
bob%bclary.com
5e35e0258f
bug 299209, since new behavior is Syntax Error instead of crash, change test to eval expression and catch eval error.
2005-07-02 08:56:41 +00:00
mrbkap%gmail.com
6053e96090
Provide snarf and load functions.
2005-07-02 04:55:29 +00:00
brendan%mozilla.org
7974c73eb2
Use non-greedy closure to match C-style comments.
2005-07-01 23:00:35 +00:00
brendan%mozilla.org
1e733a211e
Never mind\!
2005-07-01 20:48:23 +00:00
timeless%mozdev.org
6258c1f8e0
Bug 283532 OOM crash [@ jsdValue::GetProperties]
...
patch by b.jacques@planet.nl r=rginda sr=brendan a=brendan
2005-07-01 05:12:47 +00:00
brendan%mozilla.org
e837744def
Nits picked for 294893 (thanks to bz for reminding me).
2005-07-01 04:45:11 +00:00
brendan%mozilla.org
8c4e80b8d2
Disallow anonymous functions in declaration or statement context (299209, r=shaver).
2005-06-30 20:48:15 +00:00
timeless%mozdev.org
5f02377f9c
Bug 283534 OOM crash [@ xpcarraytest]
...
patch by b.jacques@planet.nl r=shaver sr=shaver a=bsmedberg
2005-06-30 20:37:11 +00:00
brendan%mozilla.org
d05a6820cc
Add function statements, an ECMA Ed. 3 extension supported by SpiderMonkey.
2005-06-30 18:16:19 +00:00
shaver%mozilla.org
1e13b76f8e
Bug 296374: patch from jag@tty.nl to fix mingw/vc2005 bustage from initial
...
landing, r+a=me.
2005-06-30 11:46:15 +00:00
bob%bclary.com
162649a576
anonymous function expression statement => JS stack overflow, bug 299209. Test by Paul Kurczaba
2005-06-30 07:00:34 +00:00
shaver%mozilla.org
cf7a7a6be7
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.
2005-06-29 14:23:03 +00:00
mconnor%steelgryphon.com
f2fc3821da
bug 298478 - Downloads fail with ...could not be saved, patch by jst, r=shaver, sr=dveditz, a=drivers
2005-06-28 15:21:31 +00:00
bob%bclary.com
d6990cbc87
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
2005-06-27 15:16:45 +00:00
igor%mir2.org
d815752518
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.
2005-06-26 22:57:31 +00:00
igor%mir2.org
ffbb010f56
Added XML and XMLList to the exclusion list
2005-06-26 22:51:49 +00:00
igor%mir2.org
57b6cbf535
Fix for bug 290034: JavaScriptException should not be wrapped inside
...
Context.throwAsScriptRuntimeEx
2005-06-26 21:32:42 +00:00
igor%mir2.org
ada3655796
When printing parse tree for debugging, include node number with target printout
2005-06-24 10:43:44 +00:00
igor%mir2.org
e54eae59a1
Optimezer-only token are moved back to Token for simpler debugging.
2005-06-24 09:40:09 +00:00
igor%mir2.org
2640760785
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".
2005-06-24 09:10:52 +00:00
igor%mir2.org
a2f6c3eb87
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.
2005-06-24 08:57:38 +00:00
mrbkap%gmail.com
a225256e96
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
2005-06-23 16:30:25 +00:00
timeless%mozdev.org
d9a66f2fd6
Bug 280234 [FIX]sometimes get ###!!! ASSERTION: tearoff not empty in dtor: '!(GetInterface()||GetNative()||GetJSObject())'
...
patch by bz r=dbradley sr=brendan a=brendan
2005-06-23 08:46:49 +00:00
dougt%meer.net
49086f674d
Removing CheckStackGrowthDirection. bug 242518. r=brendan, a=brendan
2005-06-21 21:51:17 +00:00
brendan%mozilla.org
c523d1d7ee
Use runtime-wide access check hook as a default per-object (296397, r=shaver, sr=jst, a=drivers).
2005-06-21 21:31:26 +00:00
mrbkap%gmail.com
2788959021
bug 173067: Fix unterminated character class error messages to use flat (single byte) strings instead of wide ones, so that the whole class is output, and not just the first character. r+a=brendan
2005-06-20 23:43:56 +00:00
mrbkap%gmail.com
5447cc4dc8
Remove tabs introduced by my checkin for bug 287630. rs+a=brendan
2005-06-20 19:07:30 +00:00
brendan%mozilla.org
e52c535372
Fast followup to last patch: use 2, not 1.5, as base for exponential growth (note ida->length >= 8, so no need to JS_MAX here).
2005-06-19 15:53:31 +00:00
brendan%mozilla.org
3b7d888c55
Fix transition from 0 length JSIdArray bug, and old over-allocating loop body order bug in JS_Enumerate to boot (r=bryner).
2005-06-19 07:26:20 +00:00
brendan%mozilla.org
84e8068505
After > 10 years, fix the mistake whereby scripted-functions compiled from native code lack the enumerate flag (292953, r=shaver).
2005-06-18 01:13:46 +00:00
mrbkap%gmail.com
051416bccb
bug 287630: When using an empty capturing regexp, String.prototype.split() appends an extra element to the result. r+a=brendan
2005-06-17 16:25:51 +00:00
brendan%mozilla.org
b7355adbb1
js/src part of 2nd patch for 292903, r+sr=bryner/jst.
2005-06-16 21:43:15 +00:00
brendan%mozilla.org
8bf2a66987
Fix regression from 292903's first patch, which results in JS_DEFAULT_XML_NAMESPACE_ID being enumerated! Thanks to bc for noticing.
2005-06-16 20:27:11 +00:00
brendan%mozilla.org
ea0bf58dc3
Add JS_EnumerateResolvedStandardClasses, and fix a few lazy-standard-class-init glitches hindering it (292903, r=shaver, a=me).
2005-06-16 04:24:03 +00:00
brendan%mozilla.org
8379249632
Fix dumb copy-paste bug jst pointed out, whose symptom bz reported (r+sr=jst, a=me).
2005-06-15 16:42:31 +00:00
nboyd%atg.com
155cff1303
Add Magoo Software.
2005-06-15 16:12:35 +00:00
dbaron%dbaron.org
92143eec6b
Fix releasing of nsISupportsWeakReference wrapped JS objects so it doesn't crash when we do multiple iterations of JS GC. b=292027 r=jst sr=brendan a=brendan
2005-06-15 00:23:32 +00:00
dbaron%dbaron.org
389220559c
I only want part of DEBUG_xpc_hacker; fix spelling. b=292027 r=jst sr=brendan a=brendan
2005-06-15 00:21:26 +00:00
bob%bclary.com
8715593403
function local variables should not be enumerable properties of the function object, bug 293782, by Jonathan Watt
2005-06-14 16:49:49 +00:00
brendan%mozilla.org
37094600f5
Forgot to remove JSPROP_ENUMERATE in one case for bug 293782 (thanks to jwatt for catching this).
2005-06-14 16:20:27 +00:00
brendan%mozilla.org
d3cfe0a98b
One more followup fix: __defineProperty__ should probably be global.
2005-06-12 18:45:53 +00:00
brendan%mozilla.org
8ce567567e
Followup to last checkin to delete constructor from Activation.prototype.
2005-06-12 18:28:33 +00:00
brendan%mozilla.org
0012321c21
Mirror fix for bug 290774 from SpiderMonkey to Narcissus.
2005-06-12 16:08:21 +00:00
brendan%mozilla.org
b7b9a35bd5
Better fix for 296397 (r=shaver, sr=jst).
2005-06-11 01:33:44 +00:00
bob%bclary.com
dd5b172740
remove keyword tests from spidermonkey-n.tests, add options('strict', 'werror') to force exceptions.
2005-06-10 05:22:15 +00:00
brendan%mozilla.org
ac081d05f9
Remove JSPROP_ENUMERATE from function args/vars hidden property attributes (followup for 293782).
2005-06-09 23:45:54 +00:00
brendan%mozilla.org
7cacacf414
Check access when accessing function and regexp __proto__, etc. (296397, r=shaver, a=me).
2005-06-09 01:02:36 +00:00
brendan%mozilla.org
23ed3dd111
Followup fix for 255555 (r=mrbkap, a=me).
2005-06-08 18:08:53 +00:00
mrbkap%gmail.com
87a6415a5e
bug 255555: undefined and missing values are passed to Array.sort()'s comparison function. r+a=brendan
2005-06-08 16:38:38 +00:00
bob%bclary.com
2fe1a18b36
XML.setNamespace() should affect in-scope namespaces, per brendan. No bug, not part of build.
2005-06-08 05:03:12 +00:00
bob%bclary.com
e8dbee5d27
remove extra newline which breaks mklistpage.pl, no bug, not part of build
2005-06-08 04:57:33 +00:00
bob%bclary.com
608b68522b
add invalid test e4x/Regress/regress-278112.js to spidermonkey-n.tests, rhino-n.tests
2005-06-08 04:39:06 +00:00
bob%bclary.com
01a274e399
test is testing for a crash. catch exception to prevent erroneous failure, no bug, not part of build.
2005-06-08 03:12:49 +00:00
bob%bclary.com
8c06b27d4c
rename function to eliminate possible collisions, no bug, not part of build
2005-06-08 03:03:13 +00:00
bob%bclary.com
fc262f68be
increase global/local ratio to 2.5 to reduce noise, no bug, not part of build
2005-06-08 03:01:30 +00:00
bob%bclary.com
0a16c71eb0
e4x 10.2.1.js XML.toXMLString test coverage, bug 297025
2005-06-08 02:54:39 +00:00
bob%bclary.com
10ef72f21a
e4x 10.1.2.js xmllist.toString test coverage, bug 297024
2005-06-08 02:45:15 +00:00
bob%bclary.com
30f1026449
e4x 10.1.1.js xml.toString test coverage, bug 297018
2005-06-08 02:23:01 +00:00
brendan%mozilla.org
5f76fd552e
Fix bugs 296772 and 262948 (r=shaver, sr=jst, a=me).
2005-06-08 02:13:10 +00:00
bob%bclary.com
4fd9cb5530
mklistpage.pl - exclude tests in spidermonkey-n.tests from menu.html, bug 296978
2005-06-08 01:05:34 +00:00
mrbkap%gmail.com
c2553b4dfa
bug 294195: Remove an old dependence on null-terminated strings in favor of an end-pointer to fix a crash trying to interpret regexp dollar backrefs. r+a=brendan
2005-06-07 22:16:48 +00:00
bob%bclary.com
e21aeb477a
Add newline after modeline, no bug, not part of the build
2005-06-07 19:54:01 +00:00
brendan%mozilla.org
dd66686ab6
Update comment to track tricky AVL tree reference.
2005-06-07 16:22:58 +00:00
jst%mozilla.jstenback.com
c22744cdd3
Fixing tinderbox orangeness (Thunderbird) and bug 296467. Get the function object off of the stack frame through fp->argv[-2] and not through fp->fun->object as the latter may be null if the function on the frame is a clone and the real function object no longer exists. reviews and approval pending.
2005-06-03 04:16:14 +00:00
jst%mozilla.jstenback.com
6b9590cac8
Fixing bug 294795. Don't leave references from cloned member functions to the scope where xpconnect creates the functions (safe context). r=bzbarsky@mit.edu, sr=brendan@mozilla.org, a=brendan@mozilla.org
2005-06-02 21:33:18 +00:00
shaver%mozilla.org
3f1770c2b7
Bug 296006: correctly handle the re-locking of shallow GCThings. r+a=brendan
2005-06-02 12:17:51 +00:00
bzbarsky%mit.edu
bbd38864c2
Log creation of XPCNativeWrapper and XPCWrappedNative objects if
...
DEBUG_XPCNativeWrapper is defined. Bug 295435, r+sr=jst, a=shaver.
2005-06-01 19:26:24 +00:00
timeless%mozdev.org
36419b53d9
Bug 295636 OOM Crash [@ Init]
...
r=jst sr=jst a=shaver
2005-06-01 18:36:25 +00:00
bzbarsky%mit.edu
de25a79074
Fix toString on the XPCNativeWrapper prototype to return something sane instead
...
of crashing. Bug 295430, r+sr=jst, a=shaver
2005-06-01 15:20:29 +00:00
cls%seawood.org
90fcdb00a0
Use dashes instead of backslashes for program options to avoid msys shell expansion.
...
Thanks to Howard Chu <hyc@symas.com> for the patch.
Bug #294122 r=cls a=shaver
2005-06-01 14:28:35 +00:00
bzbarsky%mit.edu
50ff79e209
Separate out deep-ness and auto-unwrapping of native wrappers (base the latter
...
on whether the wrapper is explicit). Bug 295782, r+sr+a=brendan
2005-06-01 01:46:01 +00:00
bzbarsky%mit.edu
461744f884
Don't return XPCNativeWrappers from an nsIXPConnect::WrapNative call. Bug
...
295152, r+sr=jst, a=brendan
2005-06-01 01:21:23 +00:00
brendan%mozilla.org
ac89cb0198
Fix gcPoke management to cope with nesty destroy-context order (296119, r=shaver, a=me).
2005-06-01 01:16:06 +00:00
jst%mozilla.jstenback.com
70890dce44
Fixing crash introduced with my earlier changes for bug 294893. Make nw and wn finalizers order independent. r+sr=bzbarsky@mit.edu, a=drivers
2005-05-26 21:35:27 +00:00
jst%mozilla.jstenback.com
a81b370e90
More fixes for bug 294893. When a XPCWrappedNative's scope is cleared, make sure we clear the scope for all of its XPCNativeWrappers as well. r+sr=bzbarsky@mit.edu, a=drivers
2005-05-26 19:30:36 +00:00
bzbarsky%mit.edu
a68e2d534e
Better version of last patch -- don't pin the atoms, and clean up nicely when
...
they're finalized so as not to crash. Bug 294893, assumed future r=brendan,
a=drivers
2005-05-26 17:21:29 +00:00
bzbarsky%mit.edu
495c01f9c8
Backing out to fix orange till I can sort it out.
2005-05-26 14:41:34 +00:00
bzbarsky%mit.edu
732a318bfe
Don't pin object atoms, since those can entrain all sorts of other stuff. Bug
...
294893 some more, r=brendan, sr=jst, a=brendan
2005-05-26 13:27:57 +00:00
brendan%mozilla.org
6fdd65d11d
Fix null deref crash on s.match.apply (295052, r=shaver).
2005-05-25 23:28:00 +00:00
jst%mozilla.jstenback.com
a12a67e400
More fixes for leak bug 294893. Make sure to clear the scope of the native wrapper when a wrapped native's scope is cleared. r+sr=bzbarsky@mit.edu, a=drivers
2005-05-25 03:40:24 +00:00
jst%mozilla.jstenback.com
679306af53
More attempts at fixing leak bug 294893 by fixing up parenting of XPCNativeWrapper objects, and fixing problem with accessing a deleted wrapper in some cases. r+sr=bzbarsky@mit.edu, a=asa@mozilla.org
2005-05-24 20:05:43 +00:00
jst%mozilla.jstenback.com
762423d761
Fixing (hopefully) leak bug 294893. Don't mark mNativeWrapper when an XPCWrappedNative is marked, let XPCNativeWrapper's die when all script references to them are gone even if their XPCWrappedNative is still referenced. r/sr/a=asa@mozilla.org (will get real reviews once people are reachable).
2005-05-24 06:42:30 +00:00
bzbarsky%mit.edu
3456bb0fa9
Fix deep-wrapping to reuse existing wrappers if it can. Bug 295301, r+sr=jst,
...
a=asa
2005-05-24 05:11:20 +00:00
timeless%mozdev.org
7e3c34656b
Bug 293992 printf passed user controlled buffer
...
r=shaver sr=bz a=asa
2005-05-23 21:00:06 +00:00
jst%mozilla.jstenback.com
b732bd9de4
More fixes for bug 295101. Don't leave *pob2 dangling (caught by bz). r+sr=bzbarsky@mit.edu, a=brendan@mozilla.org (on irc)
2005-05-23 16:59:29 +00:00
bzbarsky%mit.edu
239b86a89a
Check in jst's patch to auto-mark our new objects before we do things that
...
might trigger gc. Bug 295101 partial patch, r+sr=bzbarsky/brendan, a=brendan
2005-05-23 14:14:45 +00:00
brendan%mozilla.org
8d11e72c0e
Bypass XPCNativeWrapper's delProperty hook (295122, r+sr=jst).
2005-05-23 05:58:05 +00:00
bzbarsky%mit.edu
55bdaeb6a4
Stop forwarding addProperty to the wrapped native. That's not the right thing
...
to do in general (since we use OBJ_DEFINE_PROPERTY in this case in resolve
anyway), and it breaks some things. Bug 295122, r/sr=jst/brendan, a=brendan
2005-05-22 20:48:00 +00:00
brendan%mozilla.org
fe8d068db1
Fix UMR regression introduced in 3.110 (295116, tachyonal r=shaver).
2005-05-22 18:25:08 +00:00
bob%bclary.com
45099f2bc5
Add testcase for bug 295052, by David James. Do not crash on String.prototype.match.apply
2005-05-21 21:28:43 +00:00