Commit Graph

9933 Commits

Author SHA1 Message Date
mrbkap@gmail.com
9d8bd3fa41 Date.UTC returns incorrect value if date is less than or equal to 0. bug 363578, patch from jag, r=mrbkap a=brendan 2007-08-13 13:45:32 -07:00
igor@mir2.org
5b4402a59c Bug 392074: JS_IS_VALID_TRACE_KIND no longer refers to the removed JSTRACE_ATOM. r=brendan 2007-08-13 13:23:34 -07:00
igor@mir2.org
36e4858c52 Bug 392041: js_PutEscapedStringImpl gets JS_FRIEND to permit usage outside js lib. r=brendan 2007-08-13 12:35:07 -07:00
igor@mir2.org
bc6feecd10 Bug 391851: JS_ResolveStandardClass now does nothing on shutdown. r=brendan 2007-08-12 15:11:38 -07:00
brendan@mozilla.org
3a64e304b9 Update #if 0'd code to work (helpful for debugging; r/a=self). 2007-08-11 22:10:02 -07:00
igor@mir2.org
db0f3d53a2 Bug 386265: using double kashing for atoms. r=brendan 2007-08-11 13:25:16 -07:00
igor@mir2.org
f705a82de6 Bug 391033: no frame manipulation when reporting errors. r=brendan 2007-08-10 23:12:00 -07:00
dbaron@dbaron.org
4242ec800a Fix leak in DEBUG-only code. b=391769 r+sr+a=jst 2007-08-10 17:53:53 -07:00
jwalden@mit.edu
ff240f5bc0 Bug 391145 - failed to build Spidermonkey: inresolved symbol ( prmjtime.c PRMJ_Now _SetCriticalSectionSpinCount _InitializeCriticalSectionAndSpinCount ). Patch by Rob Arnold <robarnold@mozilla.com>, r=brendan, r=bsmedberg 2007-08-10 16:23:38 -07:00
bclary@bclary.com
99a0512e9c JavaScript Tests - regression tests for bug 385393, by Jesse Ruderman, not part of the build 2007-08-10 14:41:54 -07:00
dbaron@dbaron.org
51c380ef8b Finish the deflated string cache after uninterning atoms, so we don't leak their associated strings. b=391587 r+a=brendan 2007-08-10 14:30:13 -07:00
jwalden@mit.edu
5307ebca39 Bug 391423 - Reposition JS_(BEGIN|END)_EXTERN_C to avoid nesting #includes. Patch by Edward Lee <edilee@mozilla.com>, r=jorendorff, r=bsmedberg 2007-08-10 14:27:08 -07:00
jst@mozilla.org
4f27bf89e3 Fixing bug 390275. Make setTimeout() always register the timeout on the right inner window, and add a new JS_GetGlobalForObject() JS API to eliminate some code duplication. r=mrbkap@gmail.com/brendan@mozilla.org, sr=bzbarsky@mit.edu 2007-08-09 15:19:59 -07:00
bclary@bclary.com
f093d5e7a3 JavaScript Tests - regression tests for bug 373595, by Jesse Ruderman, not part of the build 2007-08-08 08:21:55 -07:00
bclary@bclary.com
32e90d99d8 JavaScript Tests - regression tests for bug 367501, by moz_bug_r_a4, not part of the build 2007-08-08 08:05:08 -07:00
bclary@bclary.com
bdfb98ded9 JavaScript Tests - regression test for bug 366601, by Igor Bukanov 2007-08-08 07:52:54 -07:00
bclary@bclary.com
b6823cfb61 JavaScript Tests - regression test for bug 365692, by Igor Bukanov 2007-08-08 07:48:57 -07:00
igor@mir2.org
557d276629 Bug 387286: patch from Rich Dougherty to name constitently JOF_* flags. r=me 2007-08-08 06:35:05 -07:00
bclary@bclary.com
c20db20ad7 JavaScript Tests - regression test for bug 364023, by shutdown, not part of the build 2007-08-08 03:30:08 -07:00
bclary@bclary.com
42146bfa25 JavaScript Tests - regression tests for bug 362872, by shutdown, Blake Kaplan, not part of the build 2007-08-08 03:26:45 -07:00
mrbkap@gmail.com
ec27287d22 Try harder to find a scope chain so that we can report exceptions when there is no code running currently. bug 390160, r=brendan sr=jst a=brendan 2007-08-07 19:24:52 -07:00
mrbkap@gmail.com
356f527fb9 Add a mochitest for __parent__ wrapping. 2007-08-07 19:18:05 -07:00
mrbkap@gmail.com
bc7aaf737e Add a mochitest for bug 390001. r=sayrer sr=bzbarsky 2007-08-07 19:12:31 -07:00
mrbkap@gmail.com
3989bcdf70 De-confuse GetWrappedNativeOfJSObject about wrappers around the outer object. bug 391055, r+sr=jst 2007-08-07 18:54:48 -07:00
mrbkap@gmail.com
1e49925451 Allow UniversalXPConnect scripts to touch XPCNativeWrappers. bug 390788, r+sr=bzbarsky a=jst 2007-08-07 18:51:43 -07:00
mrbkap@gmail.com
a9f1777416 Make XPCSafeJSObjectWrapper easier to use by not throwing for primitive values passed to the constructor. Use it in more places in PAC. bug 388450, r=crowder sr=brendan a=bzbarsky 2007-08-07 18:49:49 -07:00
crowder@fiverocks.com
9a0a6ec788 Bug 121183 - error for {return;} isn't helpful, patch by Rich Dougherty <rich@rd.gen.nz>, r=brendan 2007-08-07 08:51:46 -07:00
igor@mir2.org
b3e7b100a7 Bug 387481, bug 389063: multithreading atom fixes and cleanups. r=brendan 2007-08-07 00:29:32 -07:00
sayrer@gmail.com
804332784a Bug 390958. XPCWrappedNativeScope leaks a WrappedNative2WrapperMap. r=brendan/mrbkap, sr=brendan, a=jst 2007-08-06 20:57:15 -07:00
bzbarsky@mit.edu
211f3f453f Don't set aside the JS stack when pushing a JSContext which is already on top of the JSContext stack on top of itself. Bug 390488, r=jst, sr=brendan, a=jst 2007-08-06 19:05:24 -07:00
benjamin@smedbergs.us
5fb457dd7e Bug 386025 - Expose cycle-collection symbols, r=graydon 2007-08-06 07:34:02 -07:00
bclary@bclary.com
6a1745706d JavaScript Tests - regression test for bug 363258, not part of the build 2007-08-05 10:39:44 -07:00
bclary@bclary.com
03de3b1e25 JavaScript Tests - updated tests for JS1_8 by Igor Bukanov, bug 380469, not part of the build 2007-08-05 03:22:16 -07:00
bclary@bclary.com
cdfe23a889 JavaScript Tests - regression test for bug 387871, by Jesse Ruderman, Igor Bukanov, not part of the build 2007-08-05 03:09:52 -07:00
bclary@bclary.com
9ef01276be JavaScript Tests - regression test for bug 390918, by Jesse Ruderman, Igor Bukanov, not part of the build 2007-08-05 02:59:42 -07:00
bclary@bclary.com
9699decebe JavaScript Tests - new version of test to reflect removal of close phase of GC in bug 380469 in JS18, by Igor Bukanov, not part of the build 2007-08-05 02:31:32 -07:00
igor@mir2.org
d408f48bbf Bug 390918: fixing gen_trace assert. r=brendan 2007-08-04 21:54:34 -07:00
igor@mir2.org
b878f5679c Bug 106495: js_strtod and js_strtointeger no longer require \0-terminated js chars. r=brendan 2007-08-04 12:05:16 -07:00
igor@mir2.org
16dfe406f9 Bug 390348: pinning of JSAtomState.emptyAtom is restored. r=brendan 2007-08-04 11:59:21 -07:00
brendan@mozilla.org
bccb956372 Cope with stillborn funobj tracing via newborn root (390743, r=igor). 2007-08-04 00:31:19 -07:00
dbaron@dbaron.org
a1dfca0c39 Fix leak of JSScript when a JSFunction is collected in a later GC than its function object. This changes GCX_PRIVATE to GCX_FUNCTION, and is essentially the same as the finalization part of the changes from bug 375808 (by igor). b=389757 r=igor a1.9=brendan 2007-08-04 00:00:43 -07:00
igor@mir2.org
5687673cb8 Bug 390078: Avoiding unnecessary GC-tracing of JSStackFrame members. r=brendan 2007-08-03 12:56:35 -07:00
martijn.martijn@gmail.com
818fac589b Bug 390042 - mingw build error - error: no matching function for call to nsAutoString::nsAutoString(jschar*), r=mrbkap, sr=jst, a=jst 2007-08-03 03:15:36 -07:00
dbaron@dbaron.org
3f87493896 Fix leak of xptiInterfaceInfo in DebugDump. b=389765 r+sr=jst a=DEBUG-only 2007-08-02 17:08:28 -07:00
mrbkap@gmail.com
51ce5e88c3 Remove an unused variable. no bug, r=sparky sr=lumpy 2007-08-02 16:42:33 -07:00
mrbkap@gmail.com
15893bcdca Detect cyclic __proto__ values ourselves because the JS engine gets confused by the wrappers. bug 390626, r=brendan sr=jst 2007-08-02 16:38:11 -07:00
brendan@mozilla.org
554a416c3b Remove deadlock hazard when reparenting, single-threaded DOM so don't worry (390551, r+sr=jst). 2007-08-02 13:56:02 -07:00
brendan@mozilla.org
d8eddca351 Restore lost ECMA compatibility for length delegating/shadowing (390598, r=igor). 2007-08-02 13:36:53 -07:00
brendan@mozilla.org
df13eadca4 Fix array_pop default return value (390684, r=igor). 2007-08-02 11:40:47 -07:00
igor@mir2.org
4bf77bebf8 Bug 387481: baking out again accidental re-commit of the patch. 2007-08-02 04:34:41 -07:00
igor@mir2.org
4f4eeb5c0f Bug 390348: Baking out the last commit as the tree is closed. 2007-08-02 04:32:40 -07:00
igor@mir2.org
be07497074 Bug 106495: baking out the last commit as the tree is closed. 2007-08-02 04:27:04 -07:00
igor@mir2.org
c76fc54fe9 Bug 106495: js_strtod and js_strtointeger no longer require \0-terminated js chars. r=brendan 2007-08-02 02:34:31 -07:00
igor@mir2.org
074dad2f7f Bug 390348: pinning of JSAtomState.emptyAtom is restored. r=brendan 2007-08-02 02:28:25 -07:00
igor@mir2.org
93d8687278 Bug 385393: Changing the return value of js_BoyerMooreHorspool to be jsint to fix mingw compilation. 2007-08-02 02:14:06 -07:00
brendan@mozilla.org
c95281c463 Fix bogus assertion in last patch (for 385393). 2007-08-02 01:21:55 -07:00
brendan@mozilla.org
5069dab5e9 Fixing uninitialized v bug in InitExnPrivate (385393 followup, r=waldo). 2007-08-01 23:32:41 -07:00
brendan@mozilla.org
2373e79869 No good, un-reverting. 2007-08-01 23:05:44 -07:00
brendan@mozilla.org
05de9f50ca Attempt to fix orange. 2007-08-01 22:46:19 -07:00
brendan@mozilla.org
767c4ea288 Fast (frame-less) native call optimizations (385393, r=igor). 2007-08-01 21:33:52 -07:00
mrbkap@gmail.com
1cd91d7f01 Make enumeration over XOWs work. bug 390001, r=jst/brendan sr=jst 2007-08-01 15:25:47 -07:00
mrbkap@gmail.com
4698af71ac Let "window.eval" work again by always wrapping eval when it comes out of a cross origin wrapper. bug 389878, r+sr=jst 2007-07-31 13:15:21 -07:00
mrbkap@gmail.com
56b84f7d5a Protect vp from garbage collection, since GC could nest under several of the calls here. bug 390222, r+sr=jst 2007-07-31 12:17:31 -07:00
mrbkap@gmail.com
dfa6ab827a Don't call FindInJSObjectScope on an object that's being finalized because its parent might have been finalized already. bug 389985, r+sr=jst 2007-07-30 15:39:53 -07:00
mrbkap@gmail.com
6c7aa9d830 Deal with XPCCallContexts that aren't able to initialize themselves. This also fixes bugs related to finalizing objects on dead contexts. bug 390083, r+sr=jst 2007-07-30 14:50:10 -07:00
igor@mir2.org
de04e016e0 Bug 389880: removal of redundant gcflags argument from string-allocation functions. r=brendan 2007-07-28 09:57:30 -07:00
mrbkap@gmail.com
c86c9e9bcc Implement cross-origin wrappers to gate accesses between sites that are cross origin. This will prevent sites from monkeying with each other by doing bad things to allAccess properties, and pave the way for more security work. bug 367911, r=jst rs=brendan 2007-07-26 12:18:06 -07:00
benjamin@smedbergs.us
a03a72ded7 Fix MSVC7 build bustage from bug 389401, a=gavin for checkin to closed tree 2007-07-26 07:09:46 -07:00
brendan@mozilla.org
0427f2943d Backing out, see bug 389122 and orange or red tinderboxes. 2007-07-21 16:21:20 -07:00
brendan@mozilla.org
b36bbabdb0 Fast natives and related optimizations (385393, r=igor). 2007-07-21 14:39:42 -07:00
mrbkap@gmail.com
91b3848510 Don't double-wrap objects when getting them out of an XPCVariant. bug 384632, r=peterv sr=jst 2007-07-20 18:03:55 -07:00
nboyd@atg.com
8744b8bbcd Fix bug 388643 - JavaScript Tests - global shell.js sets JavaScript version to
version lower than required by E4X tests
Patch from David Caldwell.
2007-07-19 12:57:48 -07:00
dbaron@dbaron.org
7fbc4f9f9c Add more useful assertion for debugging cycle collector faults. b=386912 r+sr=peterv 2007-07-18 21:58:39 -07:00
dmose@mozilla.org
a86906c1b2 Fix comment to say 'createInstance' when it really means that, since this is pointed to by devmo as API documentation; no bug; rs=shaver 2007-07-18 13:19:05 -07:00
nboyd@atg.com
80e26a6491 Fix bug 387694 - More reportMatch changes to generalize tests 2007-07-18 12:59:20 -07:00
bclary@bclary.com
beb44a0525 add winmm.lib to JavaScript Shell build configuration on Windows, bug 363258, not part of the build. r=mrbkap 2007-07-18 12:55:15 -07:00
jwalden@mit.edu
d08ff83bde Bug 388276 - Build failed on solaris x86 due to checkin for 372428. Patch by Leon Sha <leon.sha@sun.com>, r=cls 2007-07-17 14:23:24 -07:00
mrbkap@gmail.com
2111e3c4cb Move where we convert things into strings into a more centralized place. bug 372075, r=bzbarsky sr=jst 2007-07-17 13:12:21 -07:00
igor@mir2.org
b2ae154e62 Bug 387871: proper state checks when closing the generator. r=brendan 2007-07-16 23:41:20 -07:00
igor@mir2.org
64b66b6dc6 Bug 380469: Followup to remove to no longer used JSGenerator.next. r=brendan 2007-07-16 23:38:27 -07:00
mrbkap@gmail.com
e3e5593a9d Fixing build bustage. 2007-07-16 14:44:00 -07:00
mrbkap@gmail.com
25acef839a Bad millisecond resolution for (new Date).getTime() / Date.now() on Windows. bug 363258, patch from Rob Arnold <robarnold@mozilla.com>, r=brendan 2007-07-16 14:29:57 -07:00
igor@mir2.org
af998ada1b Bug 380469: Taking away too zealous code simplification. 2007-07-16 13:57:16 -07:00
dolske@mozilla.com
4ec7492cfe Bug 388190: XPCOMUtils spews uuids when registering components. r=sayrer, sr=benjamin 2007-07-16 10:57:49 -07:00
alex@croczilla.com
c30fbd2d20 Bug 381693 - Allow null targetObj arg to xpcIJSModuleLoader::import().
r=sayrer, src=brendan.
2007-07-15 11:21:11 -07:00
asqueella@gmail.com
c9fa37ae8a synchronize documentation, Sylvain Pasche <sylvain.pasche@gmail.com>
r=sayrer, bug 380970
2007-07-14 14:43:35 -07:00
igor@mir2.org
49cdfeb92f Bug 380469: Followup for the previous check in to remove more no longer used close-on-GC code. r=brendan 2007-07-14 01:28:57 -07:00
igor@mir2.org
660d41053e Bug 387909: make sure that [generator] is the first bytecode. r=brendan 2007-07-13 14:23:39 -07:00
bclary@bclary.com
e127a53607 JavaScript Test - regression test for bug 349326, by Igor Bukanov 2007-07-13 10:23:49 -07:00
bclary@bclary.com
3905d47314 JavaScript Test - regression test for bug 382981, by Jesse Ruderman 2007-07-13 10:08:03 -07:00
bclary@bclary.com
814c916aa6 JavaScript Test - regression test for bug 383269, by Igor Bukanov, Brendan Eich 2007-07-13 09:56:29 -07:00
igor@mir2.org
f767897233 Bug 380469: Calling close on unreachable generators from GC is no longer supported. r=brendan 2007-07-13 00:28:47 -07:00
bclary@bclary.com
8c6323c0f9 JavaScript Test - regression test for bug 384680, by Jesse Ruderman 2007-07-12 19:26:26 -07:00
bclary@bclary.com
2b7ae64d03 JavaScript Test - regression test for bug 385134, by Jesse Ruderman 2007-07-12 19:08:24 -07:00
bclary@bclary.com
e6fcec070b JavaScript Test - regression test for bug 385729, by Jesse Ruderman 2007-07-12 18:49:58 -07:00
bclary@bclary.com
5b5c5a2c94 JavaScript Test - regression test for bug 386030, by Blake Kaplan 2007-07-12 18:13:41 -07:00
crowder@fiverocks.com
d6004f4e64 Bug 357016: follow-up to fix another void* nit, patch by Edward Lee edilee@mozilla.com, r=crowder 2007-07-12 17:04:23 -07:00
bclary@bclary.com
ce21338025 JavaScript Test - regression test for bug 387501 2007-07-12 13:56:00 -07:00
jwalden@mit.edu
db38a1aa8a Back out bug 386635; it broke restoring sessions in the browser. 2007-07-12 12:11:45 -07:00
bclary@bclary.com
c6fb5aea93 JavaScript Tests - automation updates, bug 387909, not part of the build 2007-07-12 10:49:30 -07:00
igor@mir2.org
4d73979fcd Bug 357016: Patch from Edward Lee to restore ability to compile SpiderMonkey with C++ compiler. It was broken after my changes. r=myself 2007-07-12 00:48:50 -07:00
jwalden@mit.edu
84385d4b0a Back out bug 387390; it causes the marquee binding to throw security exceptions. 2007-07-11 20:14:27 -07:00
mrbkap@gmail.com
96a7930d53 Don't trust the filename of cloned functions. bug 387390, r=jst sr=brendan 2007-07-11 18:27:03 -07:00
mrbkap@gmail.com
9bd0cdbe4b Always return XPCSafeJSObjectWrappers from Components.utils.Sandbox and evalInSandbox. This makes this interface much, much easier to use safely, as the wrapper takes care of several common problems that occur when touching regular JS objects directly. bug 386635, r=jst sr=brendan 2007-07-11 15:52:28 -07:00
mrbkap@gmail.com
81cd355477 Clear dormantNext when we're done using it. bug 387725, r=igor 2007-07-11 14:57:05 -07:00
igor@mir2.org
fcebfbaf69 Bug 386885: JSAtom.number is removed in favour of using atoms itself for hashing. r=brendan 2007-07-11 02:25:45 -07:00
neil@parkwaycc.co.uk
10de8387c8 Followup to bug 348748 to fix the alignment of trailing backslashes in macros
[xxx_cast<foo*>(bar) is three characters shorter than NS_XXX_CAST(foo*, bar)]
2007-07-11 01:46:44 -07:00
bzbarsky@mit.edu
10326593c7 Clean up the XDR properly even if JS_XDRScript fails. In particular, don't
double-free things.  Bug 387572, r+sr=brendan
2007-07-10 20:10:43 -07:00
bzbarsky@mit.edu
3b90c5c518 Relanding bug 326777, r=bsmedberg, sr=jst 2007-07-10 17:57:17 -07:00
mrbkap@gmail.com
45248ab6bc Create exceptions with the right parent. bug 387390, r=jst sr=brendan 2007-07-10 17:37:03 -07:00
mrbkap@gmail.com
6a4f4030bf Ensure that we have a valid scope chain at all times so C++ callers can create objects in the right scope. bug 387591, r=brendan 2007-07-10 17:29:25 -07:00
mrbkap@gmail.com
f9fee3fbb5 Avoid asserting for user-controlled thing (through __proto__ setting). bug 387182, r+sr=jst 2007-07-10 17:27:57 -07:00
brendan@mozilla.org
d41489569b to{Source,{,Locale}String} are not generic (387501, r=mrbkap). 2007-07-09 22:07:20 -07:00
bzbarsky@mit.edu
b35a654a6e Backing out to fix red 2007-07-09 21:07:45 -07:00
bzbarsky@mit.edu
30e205dddb Make sure that we push a null JSContext on the current thread's XPConnect stack
before processing events.  Bug 326777, r=bsmedberg, sr=jst
2007-07-09 20:48:06 -07:00
mrbkap@gmail.com
b20818daee Attempt to fix leaks. 2007-07-09 17:24:16 -07:00
mrbkap@gmail.com
edb5ab7d92 Back out this change to hopefully fix the rest of the regressions test failures (from bug 386695). 2007-07-09 16:34:58 -07:00
mrbkap@gmail.com
7630d25e2b Associate XPCWrappedNativeScopes with XPCContexts, like the DOM does with windows and contexts, so that we can push a context that's allowed to actually call XPCWrappedJS functions. bug 352791, r=jst sr=brendan 2007-07-09 14:51:57 -07:00
mrbkap@gmail.com
8a46efd79a Don't create exceptions using the global object as the parent, since that's bogus, use the scope chain instead. bug 386695, r+sr=jst 2007-07-09 14:46:18 -07:00
igor@mir2.org
40cf55c2ba Bug 385729: objects and regexps are stored in separated tables in JSScript. r=brendan,mrbkap 2007-07-08 02:03:34 -07:00
jwalden@mit.edu
6d7584839a Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros. 2007-07-08 00:08:04 -07:00
igor@mir2.org
06201208ee Bug 387229: now DUMP_SCOPE_STATS includes js_scope_stats into the log. r=brendan 2007-07-07 14:55:29 -07:00
dbaron@dbaron.org
8809a660e2 Fix bogus trace names. b=387223 r=brendan 2007-07-07 00:30:58 -07:00
mrbkap@gmail.com
d3b7705695 Allow chrome files to touch implicit XPCNativeWrappers. bug 387084, r+sr=jst 2007-07-06 17:52:44 -07:00
jwatt@jwatt.org
908616f11e Fixing bug 317304. Implement weak references for JavaScript. Patch by Alex Fritze <alex@croczilla.com>. r+sr=shaver@mozilla.org 2007-07-06 13:13:12 -07:00
brendan@mozilla.org
efbffa2c2d Fix degenerate unsigned (enum) comparisons (357016, r=igor). 2007-07-05 16:25:27 -07:00
crowder@fiverocks.com
19e2b71a02 Bug 357016: changing this back to (void *) for now to fix burning tree 2007-07-05 13:54:44 -07:00
crowder@fiverocks.com
74230e55bd Bug 357016: fixing brendan's nit from comment 23 2007-07-05 13:41:59 -07:00
crowder@fiverocks.com
403c5f1ce1 Bug 357016: spidermonkey should be buildable by a C++ compiler, patch by
crowder/Jason Orendorff, r=brendan
2007-07-05 13:37:47 -07:00
mrbkap@gmail.com
c282c6700d Ensure that accesses to implicit XPCNativeWrappers are actually legal. bug 384750, r+sr=jst 2007-07-05 13:13:43 -07:00
mrbkap@gmail.com
305babb411 Ensure that accesses to implicit XPCNativeWrappers are actually legal. bug 384750, r+sr=jst 2007-07-05 13:01:12 -07:00
dbaron@dbaron.org
1cbc7c38ef Put comment in the right place. b=180380 2007-07-03 14:31:02 -07:00
mrbkap@gmail.com
f1b151b642 Backing out these changes to fix tinderbox orange. 2007-07-02 18:12:41 -07:00
mrbkap@gmail.com
25c0152ecb Ensure that accesses to implicit XPCNativeWrappers are actually legal. bug 384750, r+sr=jst 2007-07-02 16:39:41 -07:00
brendan@mozilla.org
0a1dcc0efb Fix redundant statement and out-of-date comment. 2007-07-02 14:06:52 -07:00
igor@mir2.org
5414afce47 Bug 349326: for-in loop now always closes iterator objects. r=brendan 2007-07-02 05:13:23 -07:00
timeless@mozdev.org
3fd8c7b1e1 Bug 385765 [@ jsdASObserver::Observe] You can't dereference a NULL nsCOMPtr with operator->()
r=dveditz sr=dveditz
2007-07-01 12:25:10 -07:00
sayrer@gmail.com
7d63395630 Bug 180380. nsXPCComponents object and its wrapper leaked at shutdown. Patch by David Baron, David Bradley, and Robert Sayre. r=jst/bzbarsky, sr=dbaron 2007-06-30 16:00:09 -07:00
dbaron@dbaron.org
a9e0432310 Suspect all native wrappers during cycle collection (last part, rest already done by Graydon). b=368869 r=graydon sr=jst 2007-06-29 20:03:30 -07:00
dbaron@dbaron.org
73d371db77 Make wrapped native debug dump log the native that is wrapped. b=385549 r+sr=jst 2007-06-29 20:02:15 -07:00
jst@mozilla.org
a859c10ced Fixing bug 380474. Use the inner object when looking up methods and adding event listeners. r=mrbkap@mozilla.org, sr=brendan@mozilla.org 2007-06-27 17:28:02 -07:00
mrbkap@gmail.com
15d85b6012 Skip initial holes when computing the start value of reduce(Right). bug 386030, r=brendan 2007-06-27 17:04:49 -07:00
brendan@mozilla.org
556ea2ea85 Re-land fix for cloned function object prototyping (300079, r=igor/mrbkap). 2007-06-26 11:19:54 -07:00
enndeakin@sympatico.ca
8b4e014430 Bug 382034, support optional args in idl, try again with fix for crash calling toString, r+sr=shaver 2007-06-25 07:23:26 -07:00
enndeakin@sympatico.ca
313674e7fc Bug 382034, back out due to test content/base/test/test_bug352728.html failing 2007-06-22 08:21:13 -07:00
enndeakin@sympatico.ca
2ead939c02 Bug 382034, support optional arguments in idl, r+sr=shaver 2007-06-22 07:22:20 -07:00
dbaron@dbaron.org
d6d43cc2bd Back out again. 2007-06-21 20:11:41 -07:00
mrbkap@gmail.com
e50f715fac Actually populate the string cache so we don't leak all deflated strings. bug 385378, r=brendan 2007-06-21 17:31:50 -07:00
dbaron@dbaron.org
3cd4d2979c Bug 368869, suspect all native wrappers for cycle collection. Relanding. Patch by graydon@mozilla.com. r=brendan, sr=jst 2007-06-21 15:25:51 -07:00
mrbkap@gmail.com
5e139ac1b7 Remove useless variable. bug 385368, patch from Gabriel Sjoberg <gabrielsjoberg@gmail.com>, r=mrbkap 2007-06-21 13:38:45 -07:00
sayrer@gmail.com
7cde8caad2 Bug 381651. Tweak XPCOMUtils. Patch by Nickolay_Ponomarev <asqueella@gmail.com>. r=sayrer, sr=bsmedberg 2007-06-20 21:53:35 -07:00
mrbkap@gmail.com
1f360cb553 Implement a full nsIScriptSecurityManager in xpcshell. bug 239969, r+sr=jst 2007-06-20 17:10:48 -07:00
mrbkap@gmail.com
4c9e4ad6a3 Use the latest version of JS, so the shell always has the newest features. bug 385159, r=brendan 2007-06-20 16:53:55 -07:00
sayrer@gmail.com
b9f6bd1ac7 back out patch for bug 300079 due to leak regressions, as the new textframe code needs to land 2007-06-20 11:53:28 -07:00
brendan@mozilla.org
72e1ab0534 Test a hypothesis about the shutdown leak that's biting 300079's patch (a=sayrer). 2007-06-20 10:03:15 -07:00
bclary@bclary.com
6cf9f117b0 JavaScript Tests - regression test for bug 300079, by Brendan Eich 2007-06-20 00:50:52 -07:00
brendan@mozilla.org
52a8bbb0ca Fix violation of function prototyping due to cloned function object implementation (300079, r=mrbkap; expecting r=igor after the fact, want to get this in for widespread testing tomorrow). 2007-06-19 23:37:15 -07:00
sayrer@gmail.com
9a3ee4c1ac Bug 384168. C.u.import doesn't prevent recursion in the presence of circular dependencies. r=brendan, sr=bsmedberg 2007-06-19 23:29:49 -07:00
timeless@mozdev.org
629db88a38 Bug 365363 Return value for GetJSDValue ignored leading to death
r=silver sr=biesi
2007-06-19 22:56:13 -07:00
brendan@mozilla.org
2daca7230b Function atom if non-null must be string-keyed (385134, r=mrbkap). 2007-06-19 22:11:38 -07:00
gavin@gavinsharp.com
9082d60b3f Back out previous patch for bug 239969 (bustage, and tree is closed) 2007-06-19 19:30:54 -07:00
mrbkap@gmail.com
7bd76f0658 Implement an nsIScriptSecurityManager for the xpcshell. bug 239969, r+sr=jst 2007-06-19 19:13:22 -07:00
mrbkap@gmail.com
75ea2f192d Backing this patch out again to fix sessionstore. See bug 300079 and 385085 2007-06-19 19:06:00 -07:00
brendan@mozilla.org
5a3d7d88f5 Fix violation of function prototyping due to cloned function object implementation (300079, r=igor). 2007-06-19 11:49:53 -07:00
crowder@fiverocks.com
dea48e5a67 Bug 384809 : Various JS engine crashes/leaks in OOM conditions, r=brendan, patch by Gavin Reaney, gavin@picsel.com 2007-06-18 21:10:03 -07:00
brendan@mozilla.org
9e2a5c76f2 Clean up property attributes (384846, r=mrbkap). 2007-06-18 19:52:50 -07:00
crowder@fiverocks.com
5eb2ffa8b3 Bug 384901: leak in jsfile.c, patch by Robin Ehrlich, rehrlich@ubiqinc.com, r=mrbkap 2007-06-18 14:40:30 -07:00
mrbkap@gmail.com
8b94eb77fd Protect js_GetStringBytes from callers that happen during the last GC. Patch from brendan, bug 336907, r=daumling sr=shaver 2007-06-18 14:38:31 -07:00
crowder@fiverocks.com
2633aada42 Bug 383607: add ARM pure endian double support to JS engine, r=crowder, patch by Gavin Reaney gavin@picsel.com 2007-06-18 14:31:48 -07:00
crowder@fiverocks.com
238b7dc549 bug 379056: quieting the assertions here for all but myself and mrbkap, r=mrbkap 2007-06-18 13:24:00 -07:00
igor@mir2.org
a1781f7de4 Bug 384478: Patch from Mike Moening to fix warning when compiling with VC. r=me 2007-06-18 12:33:21 -07:00
bclary@bclary.com
e241d518ba JavaScript Tests - update test range to 48.5-51.5%, bug 211590 2007-06-18 11:35:32 -07:00
jwatt@jwatt.org
5f4f8a101b Fixing bug 383917. The new Components.utils.import code shouldn't spam the console. r=sayrer@gmail.com, sr=brendan@mozilla.com 2007-06-18 08:36:16 -07:00
bzbarsky@mit.edu
d4193fc178 Backing out bug 300079 to see whether that fixes tinderbox orange. 2007-06-18 07:32:35 -07:00
brendan@mozilla.org
6f85936f1c Fix violation of function prototyping due to cloned function object implementation (300079, r=igor). 2007-06-17 22:33:36 -07:00
bclary@bclary.com
cd5d086b5a JavaScript Test - catch indirect eval exception on trunk, bug 352797 2007-06-17 22:20:11 -07:00
bclary@bclary.com
66d51ee069 JavaScript Test - catch indirect eval exception on trunk, bug 361571 2007-06-17 22:17:54 -07:00
brendan@mozilla.org
045ac58126 Remove __callee__ property of Call prototypes (384642, r=igor). 2007-06-17 22:10:19 -07:00
brendan@mozilla.org
75f58ddadd Emit JSOP_GROUP when optimizing away delete (382981, r=mrbkap). 2007-06-17 11:05:37 -07:00
brendan@mozilla.org
4810bec838 Fix recent regression in CheckSideEffects for paren-expr case (384680, r=mrbkap). 2007-06-16 12:48:44 -07:00
bclary@bclary.com
ae0e10b8d7 JavaScript Tests - move test to extensions subsuite 2007-06-16 11:41:14 -07:00
bclary@bclary.com
fe49f4c0e0 JavaScript Test - add strict warning tests for eval rename 2007-06-16 10:14:17 -07:00
brendan@mozilla.org
395b420775 Better entrainment avoidance for Call.arguments (383269, r=igor). 2007-06-15 17:29:21 -07:00
mrbkap@gmail.com
cc6bf46a9e Restrict who can claim to implement nsISecurityCheckedComponent. bug 352882, r=jst sr=bzbarsky 2007-06-15 14:44:51 -07:00
mrbkap@gmail.com
c734aa88dd Use a better filename when eval is used across scopes. bug 369211, r=brendan 2007-06-15 14:00:26 -07:00
bclary@bclary.com
6a11d91cc6 JavaScript Test - regression test for bug 380831, by Jesse Ruderman 2007-06-15 11:46:59 -07:00
bclary@bclary.com
1e5faaaac5 JavaScript Tests - update test to ignore 1ms differences, bug 354998 2007-06-15 10:16:08 -07:00
bclary@bclary.com
54752ea48e JavaScript Test - update test to reflect new uneval(undefined) on trunk, bug 356238 2007-06-15 10:00:46 -07:00
igor@mir2.org
fccf28a641 Bug 378793: Patch from Mike Moening and me to implement per-context debug hooks. r=brendan 2007-06-14 23:44:18 -07:00
mrbkap@gmail.com
71bb46064e Allow C.u.Sandbox to take a principal or an nsIScriptObjectPrincipal. bug 353732, r+sr=jst 2007-06-14 16:50:28 -07:00
bclary@bclary.com
b32482660b JavaScript Test - regression test for bug 369666, by Brendan Eich 2007-06-14 15:43:09 -07:00
bclary@bclary.com
610f8bf961 JavaScript Tests - regression tests for bug 351102, by Jesse Ruderman, Igor Bukanov 2007-06-14 15:39:03 -07:00
bclary@bclary.com
f3a2d71473 JavaScript Tests - regression test for bug 375183, by Igor Bukanov 2007-06-14 15:34:09 -07:00
bclary@bclary.com
acf0ae0c63 JavaScript Tests - regression test for bug 367630, by Jesse Ruderman 2007-06-14 15:31:17 -07:00
bclary@bclary.com
55078e6a09 JavaScript Tests - regression test for bug 355655, by shutdown 2007-06-14 15:27:17 -07:00
bclary@bclary.com
792348a59b JavaScript Test - regression tests for bug 351102, by Brendan Eich, Igor Bukanov 2007-06-14 15:23:38 -07:00
bclary@bclary.com
a75ad7b846 JavaScript Tests - regression test for bug 367561, by Igor Bukanov 2007-06-14 15:19:51 -07:00
bclary@bclary.com
ea9fd22fe8 JavaScript Test - regression test for bug 366122, by Igor Bukanov 2007-06-14 15:15:49 -07:00
bclary@bclary.com
3e1232aeca JavaScript Test - regression test for bug 375715, by Jesse Ruderman 2007-06-14 15:09:45 -07:00
bclary@bclary.com
fe979235f1 JavaScript Test - regression test for bug 375711, by Jesse Ruderman 2007-06-14 15:04:18 -07:00
bclary@bclary.com
53e330592b JavaScript Test - regression test for bug 375801, by Jesse Ruderman 2007-06-14 14:50:12 -07:00
bclary@bclary.com
3aa8d94307 JavaScript Test - regression test for bug 383721, by timeless 2007-06-14 14:32:09 -07:00
graydon@mozilla.com
3d4d1342b5 Amazingly, backing out 368869 again. 2007-06-14 13:40:17 -07:00
igor@mir2.org
388e4dda34 Bug 378793: removal of the previous commit. 2007-06-14 13:20:37 -07:00
igor@mir2.org
ccb4248981 Bug 378793: Patch from Mike Moening to implement per-context debug hooks. r=me,brendan 2007-06-14 13:04:09 -07:00
graydon@mozilla.com
82b65a0648 Bug 368869, suspect all native wrappers for cycle collection. Nth attempt, slightly safer.r=brendan, sr=jst 2007-06-14 12:42:58 -07:00
brendan@mozilla.org
2a48db112b Avoid entraining arguments in a Call prototype (383269, r=igor). 2007-06-14 00:26:19 -07:00
igor@mir2.org
52a3248e98 Bug 384151: refactoring boxing of primitive values, r=brendan 2007-06-14 00:07:01 -07:00
bclary@bclary.com
43aa8a1db5 JavaScript Test - regression test for bug 383965, by Jesse Ruderman 2007-06-13 20:38:15 -07:00
bclary@bclary.com
0331703e69 JavaScript Test - fix scope on map call, bug 382509 2007-06-13 13:51:06 -07:00
bclary@bclary.com
aee1f56845 JavaScript Test - regression test for bug 369032, by Jesse Ruderman 2007-06-12 22:29:47 -07:00
bclary@bclary.com
a28b1be4e6 JavaScript Test - regression test for bug 382509 2007-06-12 21:50:51 -07:00
bclary@bclary.com
05be3afd67 JavaScript Test - regression test for bug 382532, by László Jánszky, Brendan Eich 2007-06-12 20:49:10 -07:00
bclary@bclary.com
4c10e5a515 JavaScript Test - regression test for bug 383255, by Jesse Ruderman 2007-06-12 20:34:39 -07:00
mrbkap@gmail.com
fb32592b65 Make Object.prototype.toSource deal with even more __proto__ hacking. bug 383965, r=crowder 2007-06-12 15:07:20 -07:00
bclary@bclary.com
c198dabbae JavaScript Test - regression test for bug 383674, by Jesse Ruderman 2007-06-12 13:58:09 -07:00
crowder@fiverocks.com
f48a5593aa Bug 375801: Using (void 0) instead of "undefined" in toSource and uneval(), r=mrbkap 2007-06-12 12:33:40 -07:00
crowder@fiverocks.com
4cfdb64aa4 Bug 383721: escape tabs on platforms with unusual isprint() routines, r=mrbkap 2007-06-12 12:30:57 -07:00
brendan@mozilla.org
1e95e50e45 Fix CheckSideEffects over-aggressiveness (383674, r=mrbkap). 2007-06-12 01:26:26 -07:00
igor@mir2.org
48e93e5ace Bug 384104: Fixing ALE macros to quell GCC strict-aliasing warnings. r=brendan 2007-06-12 00:27:23 -07:00
jwalden@mit.edu
4799fc779f Typo fixes 2007-06-10 15:08:17 -07:00
bzbarsky@mit.edu
31c193374b Change the URI argument to Components.utils.import to be a resource: URI. Bug380970, patch by Alex Vincent <ajvincent@gmail.com>, r=sayrer, sr=bsmedberg 2007-06-10 14:13:18 -07:00
graydon@mozilla.com
db1aa449df Backing out patch in bug 368869, again. Still randomly crashing (as in bug 383763). 2007-06-08 12:08:26 -07:00
gavin@gavinsharp.com
6f30049c2a Bug 381031: make JS1.8 the default for <xul:script>, and add a JSVERSION_LATEST #define to simplify future changes, patch by Nickolay Ponomarev <asqueella@gmail.com>, r+sr=brendan 2007-06-07 15:50:12 -07:00
asqueella@gmail.com
72244a2fb8 Bug 381499 - Components.utils.import reports NS_ERROR_FAILURE when the file not existsswitch to NS_ERROR_FILE_NOT_FOUND and update testsr=sayrer, sr=brendan 2007-06-07 15:34:06 -07:00
jwalden@mit.edu
88dacc9b1e Bug 369032 - "Assertion failure: kid2->parent == xml || !kid2->parent" with E4X after appendChild; avoid incorrectly reparenting XML by deeply copying instead of mutating. r=mrbkap 2007-06-06 15:06:16 -07:00
jwalden@mit.edu
28ca384ed9 Fix syntax error. 2007-06-06 11:32:31 -07:00
crowder@fiverocks.com
9adc5b48b1 Bug 374681: 260 GC roots remain after destroying JSRuntime (not the complete fix, I think), r=brendan 2007-06-06 08:59:45 -07:00
graydon@mozilla.com
87f15ddb10 Bug #368869, suspect all native wrappers as cycle roots (yet again, after Igor's change to js gc).r=brendan, sr=jst 2007-06-05 16:50:22 -07:00
mrbkap@gmail.com
019810ad4f Remove vestigial initialization 2007-06-05 16:44:21 -07:00
mrbkap@gmail.com
ac3cd0da1f Be less strict about how you can call eval. In particular, allow callers to call it through other names, as long as the this object is a global object. bug 383381, r=brendan 2007-06-05 16:42:00 -07:00
crowder@fiverocks.com
6e003e6a16 Bug 380831: incorrect uneval trying to output a getter function that is a sharp definition, r=igor 2007-06-05 13:20:07 -07:00
nboyd@atg.com
95b8b76815 Fix bug 383174: Add new reportMatch function in shell.jsr=bclary@bclary.com 2007-06-05 11:31:53 -07:00
mattwillis@gmail.com
3932303027 bug 382744 - Correct backwards assertion check in XPCNativeScriptableInfo. Patch by Manish Singh <manish@flock.com>, r=dbaron, sr=shaver 2007-06-05 08:59:44 -07:00
brendan@mozilla.org
b7ec89dba8 Fix JOF_TMPSLOT accounting (383255, r=igor). 2007-06-04 22:23:29 -07:00
igor@mir2.org
569cd785c8 Bug 383188: using code spec flag to declare extra slot used for post ++/--. r=brndan 2007-06-04 20:07:38 -07:00
mrbkap@gmail.com
6c64f414a1 Fix overflow potential. bug 373931, r=crowder rs=brendan 2007-06-04 17:05:32 -07:00
mrbkap@gmail.com
5dee40693a Remove indirect eval. bug 382509, r=brendan 2007-06-04 16:03:03 -07:00
mrbkap@gmail.com
eb787082ee Handle error returns from ftell. bug 373934, r=brendan 2007-06-04 16:01:41 -07:00
mrbkap@gmail.com
b0f7dbe005 Backing out to fix orange 2007-06-04 15:18:25 -07:00
mrbkap@gmail.com
5c0b203590 Fixing bustage, bug 382509 2007-06-04 14:47:13 -07:00
mrbkap@gmail.com
a86be613d4 Create XPCNativeWrapper function wrappers with the right parent. bug 370127, r=bzbarsky sr=brendan 2007-06-04 14:43:57 -07:00
mrbkap@gmail.com
93b24ea79d Remove indirect eval. bug 382509, r=brendan 2007-06-04 14:40:55 -07:00
mrbkap@gmail.com
8ea7ab631e Whitespace police 2007-06-04 14:38:40 -07:00
igor@mir2.org
5d6b27ea58 Bug 381973: new opcode flag top declare an extra temporary slot used by interpreter. r=brendan 2007-06-04 13:01:41 -07:00
brendan@mozilla.org
1d2da89892 Fix fun_resolve to avoid resolving hidden properties (locals/params; 382532, r=mrbkap). 2007-06-04 12:50:30 -07:00
crowder@fiverocks.com
dc97191b2e Bug 366355: perlconnect removal continues, r=mrbkap, patch by Patrick Welche <pw-fb@newn.cam.ac.uk> 2007-06-04 12:33:42 -07:00
nboyd@atg.com
3f9d754d6f Move skip lists to the testsrc directory. 2007-06-04 11:24:48 -07:00
nboyd@atg.com
b3216813c9 Add skips for tests causing OutOfMemoryErrors. 2007-06-04 09:06:43 -07:00
peterv@propagandism.org
2f628cf5c2 Fix for bug 382133 ("(function(){}).apply.ee = <foo/>;" causes shutdown crash [@ nsXPConnect::Unlink] during nsCycleCollector::CollectWhite). r/sr=jst. 2007-06-04 03:01:34 -07:00