11611 Commits

Author SHA1 Message Date
nboyd%atg.com
2e30a4b1d4 Fix some warnings.
git-svn-id: svn://10.0.0.236/trunk@259292 18797224-902f-48f8-a5cc-f745e15eee43
2009-12-22 20:03:39 +00:00
nboyd%atg.com
4e26ef8ef1 Regression test for bug 524931.
git-svn-id: svn://10.0.0.236/trunk@259291 18797224-902f-48f8-a5cc-f745e15eee43
2009-12-22 19:33:25 +00:00
nboyd%atg.com
3f6dfb4594 Fix Bug 524931 - Setting the value of an uninitialized child of an E4X object by using square bracket syntax causes Null Pointer Exception
git-svn-id: svn://10.0.0.236/trunk@259290 18797224-902f-48f8-a5cc-f745e15eee43
2009-12-22 19:22:05 +00:00
nboyd%atg.com
430e120c48 Fix Bug 535977 - Asignment problems are reported as DomExceptions "NAMESPACE_ERR"
Patch from Alberto Saez Torres


git-svn-id: svn://10.0.0.236/trunk@259288 18797224-902f-48f8-a5cc-f745e15eee43
2009-12-22 13:41:30 +00:00
nboyd%atg.com
7d39becfa9 Patch from Raphael Speyer (see https://bugzilla.mozilla.org/show_bug.cgi?id=489329#c60):
make Object.freeze work with functions, arrays, regexp

setInstanceIdValue, called by defineOwnProperty, called by freeze, was not
handing all id-identifiable properties, and so when freeze tried to freeze them
all, setInstanceIdValue was deferring onto
IdScriptableObject.setInstanceIdValue, which just throws an
IllegalStateException.

I made setInstanceIdValue always handle all the ids that getInstanceIdValue
does.


git-svn-id: svn://10.0.0.236/trunk@259287 18797224-902f-48f8-a5cc-f745e15eee43
2009-12-22 13:03:57 +00:00
hannes%helma.at
f83647274c Fix for bug 533920 - parser constructs VariableInitializer with wrong end value, therefor VariableInitializer reports false length
git-svn-id: svn://10.0.0.236/trunk@259197 18797224-902f-48f8-a5cc-f745e15eee43
2009-12-10 15:04:26 +00:00
nboyd%atg.com
fbee260dd9 Allow jsdocs to be attached to "with" nodes so that warnings about the
use of with can be suppressed using a jsdoc annotation.
Patch from John Lenz.


git-svn-id: svn://10.0.0.236/trunk@259155 18797224-902f-48f8-a5cc-f745e15eee43
2009-12-02 17:04:26 +00:00
nboyd%atg.com
5ee825068b Fix [Bug 513549] Rhino's new JSON.parse breaks on trailing whitespace
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@259130 18797224-902f-48f8-a5cc-f745e15eee43
2009-12-01 04:50:18 +00:00
nboyd%atg.com
05d595b562 Fix name conflict over "BLOCK".
git-svn-id: svn://10.0.0.236/trunk@259098 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-28 20:11:14 +00:00
nboyd%atg.com
7819ec02f6 Fix Bug 531436 - parseFloat fails on number followed by "e" that is not exponent
git-svn-id: svn://10.0.0.236/trunk@259097 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-27 20:45:15 +00:00
nboyd%atg.com
9ca39b879d Fix Bug 506940 - Correct arity of array methods
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@259096 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-27 20:40:23 +00:00
nboyd%atg.com
db7456c3d4 Fix Bug 530997 - should throw a RangeError when an array's length is set to >= 4294967296
Patch by Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@259095 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-27 20:12:42 +00:00
nboyd%atg.com
97c4607821 Fix Bug 530947 - Array.prototype.map returns a 0-length array when this array has length > 0 but no elements
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@259094 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-27 19:55:16 +00:00
nboyd%atg.com
4be982f5e3 Fix breaking regression test and match SpiderMonkey and ES5 behavior.
See bug 478047.


git-svn-id: svn://10.0.0.236/trunk@259093 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-27 18:30:18 +00:00
nboyd%atg.com
7b103c04ca Fix trivial warning.
git-svn-id: svn://10.0.0.236/trunk@259092 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-27 18:20:54 +00:00
mrbkap%gmail.com
f983371e62 Bug 529535 - Fix a bad merge to the 1.9.0 branch. r=igor a=ss
git-svn-id: svn://10.0.0.236/trunk@259042 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-19 18:27:37 +00:00
hannes%helma.at
42f1acced5 Reimplement NativeError.toString() to return Error.prototype.toString() if that returns a String.
git-svn-id: svn://10.0.0.236/trunk@259039 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-19 08:06:57 +00:00
hannes%helma.at
12831fcccb Replace deprecated enable()/disable() methods with setEnabled()
git-svn-id: svn://10.0.0.236/trunk@259003 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-17 11:05:55 +00:00
dveditz%cruzio.com
7594c8f0a6 Bug 503451 - remove GeckoActiveXObject/COMObject, and similar functions which aren't usable by content except that content can still detect which COM objects are present on the system. patch by bsmedberg, r=mrbkap sr=jst a=dveditz
git-svn-id: svn://10.0.0.236/trunk@258963 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-11 08:15:18 +00:00
hannes%helma.at
2331c7b4fa Use ScriptRuntime.escapeString() in ast.StringLiteral.toString(). Fixes bug #527452 - String with escaped characters gives wrong toSource() output
git-svn-id: svn://10.0.0.236/trunk@258955 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-10 12:36:20 +00:00
igor%mir2.org
17ea7235f2 bug 443871, a1.9.0.16=dveditz
git-svn-id: svn://10.0.0.236/trunk@258927 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-09 16:34:29 +00:00
hannes%helma.at
2cb5179cc1 Fix bug in ClassFileWriter IINC handling.
git-svn-id: svn://10.0.0.236/trunk@258859 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-03 20:01:54 +00:00
szegedia%freemail.hu
eb7a88c324 Different Fix for Bug 519933 - only throw TypeError when FEATURE_STRICT_MODE is set
git-svn-id: svn://10.0.0.236/trunk@258763 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-23 15:28:17 +00:00
szegedia%freemail.hu
f826462a7e Fix for Bug 519939 - Rhino JS debugger: allow to configure a "source provider"
git-svn-id: svn://10.0.0.236/trunk@258762 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-23 12:49:59 +00:00
szegedia%freemail.hu
b080fd1c9d Fix for Bug 519933 - Add option to allow setting... read only properties
git-svn-id: svn://10.0.0.236/trunk@258760 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-23 10:22:50 +00:00
szegedia%freemail.hu
7a7aba01a0 Fix for Bug 517861: Rhino's manifest file is incomplete. Couldn't add Specification-* entries, as it's not clear what their values should be.
git-svn-id: svn://10.0.0.236/trunk@258759 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-23 09:49:59 +00:00
nboyd%atg.com
3fdcff8ad3 Fix Bug 508964 - Update Arguments object to match ES5 spec
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@258712 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-18 02:34:50 +00:00
nboyd%atg.com
5484610de7 Fix Bug 508795 - Make Error.prototype.toString conform to spec
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@258710 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-17 19:25:04 +00:00
reed%reedloden.com
fa69281184 Bug 516862 - (follow-up patch) [p=reed r=wtc r=crowder a=ss]
git-svn-id: svn://10.0.0.236/trunk@258681 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-15 20:00:44 +00:00
nboyd%atg.com
fb13cf8973 Fix bug Bug 519692 - Failed to decompile expressions like "new Date()"
Patch from Marc Guillemot.


git-svn-id: svn://10.0.0.236/trunk@258649 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-09 17:27:18 +00:00
hannes%helma.at
5d58422cc5 Fix copy/paste error in previous commit
git-svn-id: svn://10.0.0.236/trunk@258526 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-29 15:05:45 +00:00
mrbkap%gmail.com
96be241b3e Try to fix orange.
git-svn-id: svn://10.0.0.236/trunk@258477 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-23 02:46:47 +00:00
mrbkap%gmail.com
4552195883 Bug 509583 - Deal with empty arrays the same way we deal with regular arrays. r+sr=jst a=dveditz
git-svn-id: svn://10.0.0.236/trunk@258475 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-23 00:09:09 +00:00
mrbkap%gmail.com
f6778a40b6 Fix bug 505988. r=bzbarsky sr=jst a=dveditz
git-svn-id: svn://10.0.0.236/trunk@258474 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-23 00:07:47 +00:00
nboyd%atg.com
afd19dcdb6 Attach JSDoc to object literal keys when appropriate.
Patch from Nick Santos.


git-svn-id: svn://10.0.0.236/trunk@258461 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-22 18:32:12 +00:00
reed%reedloden.com
b7efdceee7 Bug 516862: Backported a change from dtoa.c upstream made on 2009-03-01. [p=reed r=crowder r=mrbkap a=dveditz]
Here is an excerpt from the 'changes' file describing this change:
"dtoa.c and gdtoa/gdtoaimp.h and gdtoa/misc.c: reduce Kmax, and use
MALLOC and FREE or free for huge blocks, which are possible only in
pathological cases, such as dtoa calls in mode 3 with thousands of
digits requested, or strtod() calls with thousand of digits. For the
latter case, I have an alternate approach that runs much faster
and uses less memory, but finding time to get it ready for distribution
may take a while."


git-svn-id: svn://10.0.0.236/trunk@258450 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-22 06:16:27 +00:00
mrbkap%gmail.com
89d444ab8c Fix C++isms in this C function to fix Windows build bustage from bug 413735.
git-svn-id: svn://10.0.0.236/trunk@258440 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-21 23:47:19 +00:00
hannes%helma.at
e4886269c7 Patch for bug 513369 - Provide annotation based mechanism to implement host objects with ScriptableObject.defineClass()
git-svn-id: svn://10.0.0.236/trunk@258430 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-21 20:22:32 +00:00
nboyd%atg.com
c3e06c4072 More progress on strict mode.
git-svn-id: svn://10.0.0.236/trunk@258426 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-21 13:32:36 +00:00
mrbkap%gmail.com
1f0f190d09 bug 413735 - consistent readline usage. r=igor a=dveditz. Original patch from Andrei Saprykin <andrei@runitsoft.com>.
git-svn-id: svn://10.0.0.236/trunk@258406 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-16 18:57:08 +00:00
mrbkap%gmail.com
d72b3550e5 Bug 514554 - Don't skip state transitions without initializing members. r=peterv sr=jst a=dveditz
git-svn-id: svn://10.0.0.236/trunk@258405 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-16 18:33:46 +00:00
jst%mozilla.org
977b27f860 Fixing bug 500644. PAC: crash when using PAC-based manual proxy config and the attached testcase. Patch by bnewman@mozilla.com, r=mrbkap@gmail.com, sr=brendan@mozilla.org, a=dveditz@cruzio.com
git-svn-id: svn://10.0.0.236/trunk@258383 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-15 00:29:45 +00:00
nboyd%atg.com
09a13e73f4 Beginning of strict mode implementation.
git-svn-id: svn://10.0.0.236/trunk@258382 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-14 23:15:23 +00:00
nboyd%atg.com
344325e217 Fix javadoc comment.
git-svn-id: svn://10.0.0.236/trunk@258381 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-14 22:20:34 +00:00
nboyd%atg.com
3aed9665db Fix bug 507069 - make function instances' prototype property non-enumerable
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@258380 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-14 22:15:26 +00:00
nboyd%atg.com
7b7f9553b6 Fix regression in unit test.
Patch from Raphael Speyer.


git-svn-id: svn://10.0.0.236/trunk@258379 18797224-902f-48f8-a5cc-f745e15eee43
2009-09-14 22:11:51 +00:00
hannes%helma.at
7b6bb24dcc Yet another patch for bug 456546: Java method lookup fails for methods with Scriptable argument if argument is a subclass
git-svn-id: svn://10.0.0.236/trunk@258289 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-31 14:04:22 +00:00
nboyd%atg.com
e482b13286 Fix bug Bug 510443 - BOM should be treated as whitespace by the parser
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@258288 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-30 23:50:42 +00:00
hannes%helma.at
add3e9be89 Trim JSON source before parsing to fix bug 513549: Rhino's new JSON.parse breaks on trailing whitespace
git-svn-id: svn://10.0.0.236/trunk@258287 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-30 10:37:06 +00:00
nboyd%atg.com
340e664220 Fix Bug 508185 - Make indirect calls to eval legal, but use the global scope
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@258286 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-30 02:05:50 +00:00