11611 Commits

Author SHA1 Message Date
mrbkap%gmail.com
a3d3acbb16 Bug 460882. r+sr=jst.
git-svn-id: svn://10.0.0.236/trunk@257562 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-24 02:30:25 +00:00
igor%mir2.org
1f68049513 bug 488995, r=mrbkap,sr=jst,a1.9.0.12=ss
git-svn-id: svn://10.0.0.236/trunk@257561 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-23 20:27:33 +00:00
igor%mir2.org
2a15b89ffd bug 454704 - patch from Jim Blandy, r=myself, a1.9.0.12=ss
git-svn-id: svn://10.0.0.236/trunk@257560 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-23 20:24:11 +00:00
igor%mir2.org
a8e486f0d8 backing out the patch for bug 488995 due to build failure on windows
git-svn-id: svn://10.0.0.236/trunk@257559 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-23 18:56:41 +00:00
igor%mir2.org
63a8fd8863 bug 488995, r=mrbkap,sr=jst,a1.9.0.12=dveditz
git-svn-id: svn://10.0.0.236/trunk@257557 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-23 14:46:14 +00:00
nboyd%atg.com
812bc9fd45 Implement ES5 seal, isSealed, freeze and isFrozen
git-svn-id: svn://10.0.0.236/trunk@257548 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-22 01:08:22 +00:00
nboyd%atg.com
2343b22891 Fix bug in line numbers for captured comments
Patch from Nada Amin


git-svn-id: svn://10.0.0.236/trunk@257531 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-18 20:43:57 +00:00
jwalden%mit.edu
a7f507ad90 Bug 465980 - Some array methods don't work right on ginormous arrays. r=jorendorff, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257524 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-17 22:59:55 +00:00
Olli.Pettay%helsinki.fi
e0860f9cc0 Bug 461861, r+sr=mrbkap, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257490 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-14 14:31:37 +00:00
nboyd%atg.com
e28c614fba ES5: create, defineProperty and defineProperties
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@257475 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-12 11:47:23 +00:00
nboyd%atg.com
5b406e7024 Fix bug: "in" operator in the midst of for inititalizer confused parser
Patch from Nada Amin


git-svn-id: svn://10.0.0.236/trunk@257453 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-10 01:09:18 +00:00
nboyd%atg.com
b6b5ad46e3 Fix for bug 496585 "Regression in overload resolution"
git-svn-id: svn://10.0.0.236/trunk@257445 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-09 17:43:47 +00:00
nboyd%atg.com
c16b7533b5 Set lineno when parsing assignments. Patch from Nada Amin.
git-svn-id: svn://10.0.0.236/trunk@257439 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-09 13:00:44 +00:00
szegedia%freemail.hu
c528b0d288 Fix for #494665: Memory leak when using Java reflection & shared scopes
git-svn-id: svn://10.0.0.236/trunk@257428 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-06 14:11:24 +00:00
nboyd%atg.com
95aabea269 Bug 489329 - implement new Object constructor methods from ecmascript 5 spec
git-svn-id: svn://10.0.0.236/trunk@257419 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-05 12:08:59 +00:00
hannes%helma.at
ea75ea7104 Workaround fix for bug 492036 - New AST code throws codebug on certain forms of destructuring assignment
git-svn-id: svn://10.0.0.236/trunk@257378 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-03 14:47:13 +00:00
nboyd%atg.com
f6f233adf0 Fix NPE in parsing comments if source is coming from a Reader instead of
a String.


git-svn-id: svn://10.0.0.236/trunk@257377 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-03 12:51:43 +00:00
nboyd%atg.com
5a3ba2964d Fix bug 495785 - Rhino interpreter shell crashes with NullPointerException
git-svn-id: svn://10.0.0.236/trunk@257341 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 01:44:15 +00:00
nboyd%atg.com
f66bd9dff3 enable calling of new JUnit tests
git-svn-id: svn://10.0.0.236/trunk@257295 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-28 12:10:42 +00:00
nboyd%atg.com
7564ea8146 Miscellaneous AST bug fixes:
Fixed incorrect node positions for labeled statements and finally blocks.

Labels: when parsing a labeled loop, we set the loop's parent to the
LabeledStatement before parsing the loop's children, which messes up
their offsets. Worked around the problem by temporarily adjusting the
loop's position while parsing the children.

Try statements had two bugs:
  - the parser was setting the 'finally' keyword's position incorrectly
    (wasn't setting it relative to parent)
  - the toSource() method threw a NullPointerException for a
    try/finally block with no catch clauses.

Also fixed AstNode.setParent() to un-relativize the node's position if
the node already had a parent. This doesn't happen in Rhino's parser, but
if users are doing tree rewrites they could have run into bad offsets.

Patch from Steve Yegge


git-svn-id: svn://10.0.0.236/trunk@257294 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-27 17:29:06 +00:00
nboyd%atg.com
a45aee6384 Implement new Object constructor methods from ecmascript 5
Fixes bug 489329
Patch by Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@257293 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-27 16:47:16 +00:00
nboyd%atg.com
d226378e09 Remove obsolete assertion as underlying problem has been resolved. Add
tests back.


git-svn-id: svn://10.0.0.236/trunk@257291 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-27 12:24:48 +00:00
nboyd%atg.com
47ad2eccc2 Add V8 benchmarks.
Adapted from patch by Raphael Speyer.
Fixes Bug 492538.


git-svn-id: svn://10.0.0.236/trunk@257272 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 20:19:47 +00:00
nboyd%atg.com
f930e0385d Fix bug from newsgroup:
I'm trying to implement a custom iterator and want to return different
  values depending on the method of iteration (for..in or for each..in).
  The problem is that my __iterator__ function receives the "onlyKeys"
  parameter as being always true regardless of the for loop used.
  So in Rhino 1.7 release 2 2009 03 22 on Windoes XP SP3 with Java
  1.6.0_13, I have this test case:
      var foo = {
          __iterator__ : function(onlyKeys) {
              print(keys);
              yield [0, "a"];
          }
      };
      for each (let f in foo) {}
      for (let f in foo) {}


git-svn-id: svn://10.0.0.236/trunk@257257 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-21 20:30:58 +00:00
nboyd%atg.com
052161f648 Fix warning.
git-svn-id: svn://10.0.0.236/trunk@257249 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-21 13:14:04 +00:00
nboyd%atg.com
1067c3af61 Fix Bug 492525 - NativeArray.getAllIds does not return array indices
git-svn-id: svn://10.0.0.236/trunk@257242 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-20 12:26:37 +00:00
nboyd%atg.com
adac11f6bf Update to unit test
git-svn-id: svn://10.0.0.236/trunk@257241 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-20 11:55:49 +00:00
nboyd%atg.com
161b4d3d80 Purge more long-running or flaky tests.
git-svn-id: svn://10.0.0.236/trunk@257240 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-20 11:55:10 +00:00
bclary%bclary.com
9c12b95ec8 JavaScript Tests - revert last checkin. I inadvertently reverted to the unfixed versions
git-svn-id: svn://10.0.0.236/trunk@257236 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 21:46:39 +00:00
bclary%bclary.com
f0b30f2a97 JavaScript Tests - fix typos, by Jeff Walden
git-svn-id: svn://10.0.0.236/trunk@257235 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 21:20:30 +00:00
nboyd%atg.com
b35603d5e3 Successful run of all JUnit tests, including MozillaSuiteTest.
git-svn-id: svn://10.0.0.236/trunk@257233 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 20:31:32 +00:00
nboyd%atg.com
811f8dd148 Make sure that we exit the Context in tests.
git-svn-id: svn://10.0.0.236/trunk@257230 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 17:26:04 +00:00
nboyd%atg.com
919abd8bed New JUnit-based test runner for the Mozilla suite tests.
git-svn-id: svn://10.0.0.236/trunk@257202 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 12:30:45 +00:00
nboyd%atg.com
769c0bced7 Clean up test to allow for multiple invocations
git-svn-id: svn://10.0.0.236/trunk@257201 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 12:11:46 +00:00
nboyd%atg.com
1414cd9c01 Clean up test to handle multiple invocations
git-svn-id: svn://10.0.0.236/trunk@257200 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 12:11:19 +00:00
nboyd%atg.com
868f37b44a Generalize the "set once" paradigm to allow for a single setter.
git-svn-id: svn://10.0.0.236/trunk@257199 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 12:09:55 +00:00
hannes%helma.at
0d216d4e34 Forward calls to Map.get() to Scriptable.get() instead of ScriptableObject.getImp() so it will actually work in subclasses that override ScriptableObject.get().
git-svn-id: svn://10.0.0.236/trunk@257195 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-14 21:10:04 +00:00
hannes%helma.at
ef46a2d0d9 New fix for bug 351664 - Rethrown JavaScriptException's toString() returns "[object Error]"
git-svn-id: svn://10.0.0.236/trunk@257167 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-12 13:02:59 +00:00
hannes%helma.at
ac6556707c Commit patch for bug 454505 - Implement JS 1.8 destructuring assignment shorthand for Rhino
git-svn-id: svn://10.0.0.236/trunk@257162 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 15:44:05 +00:00
hannes%helma.at
64402ef6cd Commit patch for bug 456357 - Implement JS 1.8 expression closures in Rhino
git-svn-id: svn://10.0.0.236/trunk@257161 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 15:34:11 +00:00
hannes%helma.at
78ea26d961 Commit patch for bug 492359 - Calling generic String and Array functions without arguments causes ArrayIndexOutOfBoundsException.
Rhino now follows spidermonkey in using the this-object if a generic String or Array function is called without argument.


git-svn-id: svn://10.0.0.236/trunk@257160 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 15:26:10 +00:00
hannes%helma.at
eb22974326 Commit patch for bug 436731 - multiple destructuring forms in function param list
git-svn-id: svn://10.0.0.236/trunk@257154 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 10:02:15 +00:00
hannes%helma.at
08030ef360 Commit patch for bug 456389: Implement JS 1.8 reduce/reduceRight array methods
git-svn-id: svn://10.0.0.236/trunk@257130 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-07 14:27:00 +00:00
bclary%bclary.com
7bd0468d80 bug 487546 - updating the tests to reflect the new restriction on the maximum string length. npotb, patch by Igor Bukanov, r=bclary
git-svn-id: svn://10.0.0.236/trunk@257108 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-05 12:04:01 +00:00
szegedia%freemail.hu
9ca3b8441f Make sure we can lazily load our standard objects even when invoked from code that wouldn't have privilege to access those classes
git-svn-id: svn://10.0.0.236/trunk@257059 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-26 10:11:51 +00:00
szegedia%freemail.hu
ecf548eeab Pathch for [#463996]: customizable typeOf for ScriptableObjects (contributed by Marc Guillemot)
git-svn-id: svn://10.0.0.236/trunk@257058 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-26 10:09:44 +00:00
igor%mir2.org
b25ffed1fe bug 478336 - fixing rt->state/rt->contextList mutation race, backport to 1.9.0 by Jason Orendorff, a1.9.0.10=dveditz
git-svn-id: svn://10.0.0.236/trunk@257012 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-22 07:53:06 +00:00
igor%mir2.org
7651dd6dce bug 477021 - make sure that js_(New|Destroy)Context() do not race against the GC, backport to 1.9.0 by Jason Orendorff, a1.9.0.10=samuel.sidler
git-svn-id: svn://10.0.0.236/trunk@257000 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 16:05:11 +00:00
igor%mir2.org
71fa6dd59a bug 476934 - JS_(Set|Clear)ContextThread() must wait for the GC, backport to 1.9.0 by Jason Orendorff, a1.9.0.10=samuel.sidler
git-svn-id: svn://10.0.0.236/trunk@256998 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 13:01:45 +00:00
igor%mir2.org
566246d749 bug 426520, r=brendan a1.9.0.10=dveditz
git-svn-id: svn://10.0.0.236/trunk@256997 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 10:27:31 +00:00