11489 Commits

Author SHA1 Message Date
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
igor%mir2.org
973f2f4d31 bug 487204, r=brendan a1.9.0.10=dveditz
git-svn-id: svn://10.0.0.236/trunk@256996 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 10:07:20 +00:00
mrbkap%gmail.com
5ae7f6792b Bug 479560, r+sr=jst a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256978 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-19 03:17:46 +00:00
igor%mir2.org
85940179ec backing out for bug 478336, bug 477021 and bug 476934 due to compilation failure on Windows in bug 476934
git-svn-id: svn://10.0.0.236/trunk@256968 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 09:07:05 +00:00
igor%mir2.org
91ee98114c 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@256967 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 08:28:08 +00:00
igor%mir2.org
d1d2420fdb 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=dveditz
git-svn-id: svn://10.0.0.236/trunk@256966 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 08:22:55 +00:00
igor%mir2.org
1252c41410 bug 476934 - JS_(Set|Clear)ContextThread() must wait for the GC, backport to 1.9.0 by Jason Orendorff, a1.9.0.10=dveditz
git-svn-id: svn://10.0.0.236/trunk@256965 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 08:15:57 +00:00
igor%mir2.org
0d35f00fc9 bug 467441 - avoiding js_(Add|Remove)Root for regexp statics, backport to 1.9.0 by Jason Orendorff, a1.9.0.10=samuel.sidler
git-svn-id: svn://10.0.0.236/trunk@256964 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 08:07:56 +00:00
igor%mir2.org
f6962d17d4 bug 427196, a1.9.0.10=samuel.sidler
git-svn-id: svn://10.0.0.236/trunk@256963 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 08:01:17 +00:00
igor%mir2.org
73e3de6592 bug 369696, a1.9.0.10=samuel.sidler
git-svn-id: svn://10.0.0.236/trunk@256962 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 07:56:47 +00:00
bclary%bclary.com
d1acf00cea JavaScript Tests - bug 452598 upvar2, aka the big one, by Brendan Eich, sync js/tests to tracemonkey, npotb
git-svn-id: svn://10.0.0.236/trunk@256882 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-10 19:44:03 +00:00
bclary%bclary.com
9557515f84 JavaScript Tests - typo fixes by Jeff Walden, sync js/tests to tracemonkey, npotb
git-svn-id: svn://10.0.0.236/trunk@256881 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-10 19:40:45 +00:00
nboyd%atg.com
01a0dd5aed Support for JSDoc parsing in Rhino. Attaches comments to nodes during parsing
to make them available through the AST API.


git-svn-id: svn://10.0.0.236/trunk@256844 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-07 21:12:40 +00:00
nboyd%atg.com
901245a938 Restore revision prior to inadvertent checkin.
git-svn-id: svn://10.0.0.236/trunk@256841 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-07 17:02:51 +00:00
nboyd%atg.com
74564a5103 New file to go with org.mozilla.javascript.tests.Bug482203
git-svn-id: svn://10.0.0.236/trunk@256840 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-07 16:54:57 +00:00
hannes%helma.at
50ff176e58 Fix bug 461168: Regression: constructor form of Packages is broken
git-svn-id: svn://10.0.0.236/trunk@256813 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-05 09:09:42 +00:00
mrbkap%gmail.com
67ffe2b343 Bug 477128 - Add a mochitest.
git-svn-id: svn://10.0.0.236/trunk@256805 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-02 22:10:57 +00:00
nboyd%atg.com
d22d915704 Fix bug 477233 - E4X filters with namespaces codegen bug
git-svn-id: svn://10.0.0.236/trunk@256715 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-27 02:30:27 +00:00
bclary%bclary.com
f54b5be1b9 bug 452498 - modify test to deal with new SyntaxError: duplicate argument is mixed with destructuring pattern error.
git-svn-id: svn://10.0.0.236/trunk@256625 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-23 17:59:24 +00:00
nboyd%atg.com
53fe328726 Handle missing file.
git-svn-id: svn://10.0.0.236/trunk@256624 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-23 16:11:22 +00:00
nboyd%atg.com
08da084400 Change to use ScriptableOutputStream/ScriptableInputStream
git-svn-id: svn://10.0.0.236/trunk@256614 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-21 01:53:38 +00:00
nboyd%atg.com
03eea889fd Fix spelling error in comment
git-svn-id: svn://10.0.0.236/trunk@256611 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-21 01:39:41 +00:00
bclary%bclary.com
5eccd52851 bug 457065 - JavaScript Tests by Jesse Ruderman, Gary Kwong. default tip
bug 471373 - JavaScript Test by Jesse Ruderman.
bug 472528 - JavaScript Tests by Gary Kwong, Jesse Ruderman.
bug 472703 - JavaScript Test by Gary Kwong.
bug 471660 - JavaScript Test by Gary Kwong.
no bug JavaScript Tests - sync cvs->hg browser.js
bug 469937 - JavaScript Test by Jesse Ruderman, merge cvs->hg.
bug 476655 - JavaScript Test by Gary Kwong.
bug 477733 - JavaScript Test by Jesse Ruderman.
bug 479252 - JavaScript Test by Igor Bukanov.
bug 479381 - JavaScript Test by Jason Orendorff.
bug 479430 - JavaScript Tests by Igor Bukanov.
bug 479487 - JavaScript Test by Igor Bukanov.
bug 479551 - JavaScript Test by Jeff Walden.
bug 480096 - JavaScript Test by Peter Seliger.
bug 480244 - JavaScript Test by Graydon Hoare.
bug 480579 - JavaScript Test by Jason Orendorff.
bug 481516 - JavaScript Test by Jason Orendorff.
bug 483103 - JavaScript Test by Jesse Ruderman.
bug 483749 - JavaScript Test by Gary Kwong.
bug 452498 - JavaScript regression tests for upvar2.
bug 484321 - Sisysphus - JavaScript Tests - support timeout and crash exclusion patterns.


git-svn-id: svn://10.0.0.236/trunk@256596 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 05:01:03 +00:00