6919 Commits

Author SHA1 Message Date
igor%mir2.org
35e45800b5 1. Replacing cx.reportRuntimeError1 by Context.reportRuntimeError1
since the method is static.

2. Replacing cx.getSourcePositionFromStack by
   Context.getSourcePositionFromStack since the method is static. That
   allowed to remove Context.getCurrentContext() call before.


git-svn-id: svn://10.0.0.236/trunk@179287 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-30 08:26:54 +00:00
igor%mir2.org
0be0e1e776 1. Replacing cx.getSourcePositionFromStack by Context.getSourcePositionFromStack since the method is static.
2. That allowed to remove Context.getCurrentContext() call before.


git-svn-id: svn://10.0.0.236/trunk@179285 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-30 07:58:33 +00:00
igor%mir2.org
5f7e5dcd70 Yet another update of JS function as Java interface implementation to print explicit error messages when conversion is not possible.
git-svn-id: svn://10.0.0.236/trunk@179284 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-30 07:50:08 +00:00
brendan%mozilla.org
767175fb91 Generic static method automation to simplify things for callers of generic prototype methods (304828, r=mrbkap, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@179281 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-30 04:28:45 +00:00
mrbkap%gmail.com
4360615072 bug 289628: Emulate Perl's handling of invalid min/max quantifiers (and match other browsers). r=brendan
git-svn-id: svn://10.0.0.236/trunk@179267 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-30 00:25:49 +00:00
igor%mir2.org
ae0b162fc2 Fixing copy-source target to generate proper distribution jars.
git-svn-id: svn://10.0.0.236/trunk@179260 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-29 23:24:05 +00:00
igor%mir2.org
4e6ef55cca Cleanup of JS function as Java interface implementation:
1. I removed caching of indicators of which types to convert: it just consumes extra memory without any noticeable benefits.

2. Better comments.


git-svn-id: svn://10.0.0.236/trunk@179225 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-29 19:27:17 +00:00
igor%mir2.org
8e13c5ea26 Yet another improvement in not-a-function reporting. Now for foo.bar() when bar does not exist Rhino prints "Can not find function bar"
git-svn-id: svn://10.0.0.236/trunk@179198 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-29 14:59:27 +00:00
igor%mir2.org
7602271f2b Removal of useless import statementes.
git-svn-id: svn://10.0.0.236/trunk@179191 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-29 13:25:32 +00:00
igor%mir2.org
49d604fd8a Implementing bug 306308: now java.lang.reflect.Proxy is used for function->interface conversion
git-svn-id: svn://10.0.0.236/trunk@179189 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-29 10:57:30 +00:00
igor%mir2.org
5b642a8550 Added fixed bug 306268
git-svn-id: svn://10.0.0.236/trunk@179187 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-29 06:03:36 +00:00
igor%mir2.org
1fddbb8754 Eliminating dead code in ScriptRuntime.evalSpecial: Context.compileString
never returns with null.
It was reported by Olinda Spider, pat@mcnerthney.com.


git-svn-id: svn://10.0.0.236/trunk@179181 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-28 23:44:41 +00:00
igor%mir2.org
aae0945be3 Fixing bug 306268: Patch from Olinda Spider, pat@mcnerthney.com, to fix dot
query decompilation.


git-svn-id: svn://10.0.0.236/trunk@179180 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-28 23:25:22 +00:00
igor%mir2.org
e2404660d3 Added ref to bug 306258
git-svn-id: svn://10.0.0.236/trunk@179172 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-28 20:43:39 +00:00
igor%mir2.org
bd8cf328d7 Fixing 306258: now Rhino can be compiled with Ant under JDK 1.5
git-svn-id: svn://10.0.0.236/trunk@179169 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-28 19:51:23 +00:00
igor%mir2.org
64f1db58a2 Changing the example to use the supported syntax, the older syntax did not
work since 1.5R1 release or so.


git-svn-id: svn://10.0.0.236/trunk@179168 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-28 19:49:21 +00:00
igor%mir2.org
7d94cdcc18 Fixing 306258: Allow to compile under JDK 1.5
git-svn-id: svn://10.0.0.236/trunk@179167 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-28 19:15:21 +00:00
igor%mir2.org
318ae22d61 Updating with info about direct function->interface conversion
git-svn-id: svn://10.0.0.236/trunk@179165 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-28 18:46:13 +00:00
igor%mir2.org
3bfdf83920 Ignoring exception during (Input|Output)Stream.close() from external
processes. On Windows it may throw IOException if process terminates too
fast.


git-svn-id: svn://10.0.0.236/trunk@179145 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-27 21:24:29 +00:00
igor%mir2.org
123041bddd Tools are listed on the main Rhino page
git-svn-id: svn://10.0.0.236/trunk@179144 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-27 21:17:57 +00:00
igor%mir2.org
ac559a5e53 Rhino tools are listed explicitly on the main documentation page.
git-svn-id: svn://10.0.0.236/trunk@179143 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-27 21:17:02 +00:00
igor%mir2.org
1a42889cdf Added Windows-specific examples using runCommand
git-svn-id: svn://10.0.0.236/trunk@179142 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-27 21:16:14 +00:00
igor%mir2.org
66367a77c6 Cosmetics: delete-trailing-blanks
git-svn-id: svn://10.0.0.236/trunk@179140 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-27 19:50:55 +00:00
mrbkap%gmail.com
220d1315c7 bug 303108: Components.utils.evalInSandbox should throw exceptions that tell the caller what went wrong, instead of always throwing NS_ERROR_FAILURE. r=shaver
git-svn-id: svn://10.0.0.236/trunk@179113 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-26 23:41:06 +00:00
mrbkap%gmail.com
ec686a8d55 bug 305883: Protect against the empty XML list to fix a crash when emitting code for |<></>|. Also fix the decompiler to handle XMLLists correctly. r=brendan
git-svn-id: svn://10.0.0.236/trunk@179068 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-26 18:34:41 +00:00
nboyd%atg.com
f79e57a49b Modify command for building docs directory so that owner.js is included.
git-svn-id: svn://10.0.0.236/trunk@179046 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-26 13:55:53 +00:00
mrbkap%gmail.com
ae6fbb954a bug 302834: Components.utils.evalInSandbox should return the result of the given operations. Introduce a new Sandbox constructor to pass in as the second argument. Also bring the one use of evalInSandbox in the tree up to date with the new API. r=shaver/brendan
git-svn-id: svn://10.0.0.236/trunk@178955 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 16:38:58 +00:00
szegedia%freemail.hu
9275a31f10 Fix for 305753: "NativeJavaMethod objects have incorrect parent when using parent scopes"
git-svn-id: svn://10.0.0.236/trunk@178924 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 08:44:40 +00:00
jst%mozilla.jstenback.com
204db39c56 Fixing bug 305528. Make XPCWrappedNative::GetWrappedNativeOfJSObject() attempt to find a wrapper using obj's outer object if it can't find one using obj. r=shaver@mozilla.org, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@178902 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 04:30:31 +00:00
brendan%mozilla.org
9cad3f82f3 Restore lost for(i in null); compat (bug 292731, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@178804 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 18:15:53 +00:00
bzbarsky%mit.edu
a1e031e0ea Make sure all XPCWrappedNatives get their equality op called. Bug 305288, also
fixes bug 305421.  r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@178748 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 23:01:37 +00:00
mrbkap%gmail.com
51a7e8ecba bug 305583: Toggle on the XML option, even if the script wasn't invoked with it when the XMLList constructor is used. r=brendan
git-svn-id: svn://10.0.0.236/trunk@178705 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 17:10:47 +00:00
mrbkap%gmail.com
f466933f81 bug 280769: Clean up the whitespace in jsregexp.c in preparation for fixing large regexp crashes. Patch by Igor Bukanov <igor@mir2.org>. r/sr=mrbkap/brendan
git-svn-id: svn://10.0.0.236/trunk@178696 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 16:47:12 +00:00
mrbkap%gmail.com
85bc637ffb Fix stupid OOM leak. r+a=shaver (bug 305628)
git-svn-id: svn://10.0.0.236/trunk@178693 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 16:26:36 +00:00
mrbkap%gmail.com
b99362a8b1 bug 292731: Use the same optimization for with as we do for for-in; trying to fix the Tp loss caused by the removal of this optimization when we tried doing this the other way. r=brendan (on IRC)
git-svn-id: svn://10.0.0.236/trunk@178643 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 22:30:08 +00:00
brendan%mozilla.org
306d9c4922 Have to check this instanceof XML in natives after all (305335, r/sr=mrbkap/shaver, a=me).
git-svn-id: svn://10.0.0.236/trunk@178641 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 22:20:35 +00:00
mrbkap%gmail.com
778d69a5f2 bug 132949: fix some of the more egregious bugs in jsfile.c, this also cleans up some of the style nits, but is nowhere a complete patch. Use jsfile.c at your own risk! rs=shaver
git-svn-id: svn://10.0.0.236/trunk@178611 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 17:30:44 +00:00
mrbkap%gmail.com
1c00f363b1 bug 292731: be consistent in calling valueOf when using for-in. r=brendan
git-svn-id: svn://10.0.0.236/trunk@178609 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 17:09:53 +00:00
szegedia%freemail.hu
a7beb9afe7 Fix for 305323: Rhino fails to select the appropriate overloaded method
This was due to a bug where code deviated from the section 3.3.6.1 of the LC3 specification. This commit makes the code compliant with the referenced spec section.


git-svn-id: svn://10.0.0.236/trunk@178541 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-21 13:29:32 +00:00
brendan%mozilla.org
c769380e0b Put E4X-only stuff within #if JS_HAS_XML_SUPPORT.
git-svn-id: svn://10.0.0.236/trunk@178317 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-19 23:35:30 +00:00
brendan%mozilla.org
a5ee8dc118 Forgot this fix to the fix for 301956 -- wahhhh!
git-svn-id: svn://10.0.0.236/trunk@178315 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-19 23:30:47 +00:00
brendan%mozilla.org
e4787dc4af Patch to bug 305002 written by Hans-Andreas Engel <Hans-A.Engel@unibas.ch>.
git-svn-id: svn://10.0.0.236/trunk@178215 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-19 01:48:48 +00:00
brendan%mozilla.org
9c973f5450 C++ auto-storage-class helpers for requests and local roots (needed for 301265 and other bugs).
git-svn-id: svn://10.0.0.236/trunk@177951 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 16:26:14 +00:00
dougt%meer.net
a6361ac7ce WinCE only. Disable opt for xpconnect. Did I mention that the windows ce optimizer blows? bug=304714. r=shaver, a=asa
git-svn-id: svn://10.0.0.236/trunk@177931 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 06:21:05 +00:00
timeless%mozdev.org
4dad4e76e9 Bug 303596 DEBUG_CheckClassInfoClaims should tolerate NS_ERROR_OUT_OF_MEMORY
r=jst sr=jst


git-svn-id: svn://10.0.0.236/trunk@177929 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 05:36:36 +00:00
timeless%mozdev.org
62408f158b Bug 303521 !!! Object's nsIClassInfo lies about it's interfaces!!! s.b. "its"
r=jst sr=jst


git-svn-id: svn://10.0.0.236/trunk@177928 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 03:44:45 +00:00
mrbkap%gmail.com
4717271786 bug 289933: functions, RegExps, and Script objects should all be of type "function" for compatibility with older SpiderMonkeys and to more closely imitate ECMA. r=brendan
git-svn-id: svn://10.0.0.236/trunk@177895 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 21:40:55 +00:00
jst%mozilla.jstenback.com
3cc6010472 Fixing bug 301476. Make XPCNativeWrapper's checkAccess hook always forward to the wrapper's checkAccess hook, if it's got one. r=shaver@mozilla.org, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@177879 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 20:08:39 +00:00
bsmedberg%covad.net
f5a3c325b8 Bug 299992 (re-landing) - Move pldhash etc. into the xpcom glue, and centralize various instances of nsINIParser in the xpcom glue. Some files were cvscopied from xpcom/ds to xpcom/glue r=brendan/darin
git-svn-id: svn://10.0.0.236/trunk@177766 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 18:29:55 +00:00
nboyd%atg.com
44a8e411fc Doc changes for 1.6R2.
git-svn-id: svn://10.0.0.236/trunk@177739 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 02:43:50 +00:00