Граф коммитов

2133 Коммитов

Автор SHA1 Сообщение Дата
nboyd%atg.com 051091f387 Update to sync with latest tests. 2007-07-20 12:37:48 +00:00
nboyd%atg.com c3b68a5f0f Add missing language versions. 2007-07-20 12:08:52 +00:00
nboyd%atg.com 8e23c48aca Fix bug 382098 - E4X attribute literals broken. Patch from Adam de Boor
<adeboor@google.com>.
Also remove obsolete (no longer supported in SpiderMonkey) check for
semicolon separation between functions.
2007-07-20 12:06:47 +00:00
nboyd%atg.com 0860b4cabb Fix bug 382098 - E4X attribute literals broken. Patch from Adam de Boor
<adeboor@google.com>.
2007-07-20 12:05:29 +00:00
nboyd%atg.com e07ae2455f Always need Object[] rather than String[] for Context.newArray(). 2007-07-20 11:59:51 +00:00
nboyd%atg.com 31f0804d21 Use "associateValue" approach to save and restore the Generator prototype
for each scope rather than the kludgy former approach of storing a
reference to the prototype in the StopIteration object.
2007-07-18 15:13:33 +00:00
nboyd%atg.com 42efbe4736 Minor: Fix spelling error in comment. 2007-07-18 15:10:20 +00:00
nboyd%atg.com 3798a88a61 Minor: fix spelling errors in comment. 2007-07-18 15:09:25 +00:00
nboyd%atg.com 58e21c3835 Add special Rhino object __exception__ defined in the catch
scope that can be used to retrieve the Java exception associated
with the JavaScript exception (to get stack trace info, etc.)
Patch from Bob Jervis <bjervis@google.com>
2007-07-18 15:08:38 +00:00
nboyd%atg.com 8159886a87 Minor: fix spelling mistakes in comments. 2007-07-18 15:04:57 +00:00
nboyd%atg.com 41f476051f Add testsrc to the distribution, and clean up some build.xml formatting. 2007-07-18 12:42:40 +00:00
nboyd%atg.com 1c09f02f43 Fix one small warning. 2007-07-16 13:51:35 +00:00
nboyd%atg.com 78343e9640 Fix bug 386997 - Need to support 'debugger' statement
Adding the 'debugger' keyword will now result in a breakpoint being hit when
run in the Rhino debugger. The statement is ignored if the debugger is not
running or when compiled to Java bytecodes.

Patch from Bob Jervis (bjervis@google.com).
2007-07-12 15:09:18 +00:00
nboyd%atg.com c73f7c72b3 Patch from Bob Jervis (bjervis@google.com):
Here is the patch for the (mostly) formatting issues in the code differences.
Note: There is one non-formatting change in here.  It is fallout from the
'const' support I implemented some time back.  Basically, the change marginally
improves the memory allocation for compiled code.  Essentially, the bug is that
I was reserving 2 slots for each local, when I should only reserve one in this
function.  (This is the result of a bad cut and paste, I think, with the
function above it in Codegen.java.)
2007-07-12 14:52:30 +00:00
nboyd%atg.com a83b7e8719 New skips of new tests. 2007-07-11 16:53:38 +00:00
nboyd%atg.com 7389c08ecb Implement block scope (let) and array comprehensions.
This required significant changes to symbol table management.
2007-07-11 16:00:03 +00:00
nboyd%atg.com 29b1032a5e Switch to 1.4 as the souce and target. 2007-07-11 13:55:09 +00:00
nboyd%atg.com e3954fc48f See bug 382340. Additional patch from Hannes Wallnoefer:
The varargs patch does not handle the case where a varargs method is called
with a java array. For example, the following code returns a List containing a
string array as single element, instead of a List containing all the strings in
the array:

java.util.Arrays.asList(java.util.TimeZone.getAvailableIDs());
2007-06-28 12:52:40 +00:00
nboyd%atg.com ac1427d243 Fix boolean value passed to __iterator__ when called by runtime as a result of
for..in loop.
Also fix formatting.
2007-06-15 15:39:11 +00:00
nboyd%atg.com 85813cad67 Fix bug 381180 - __lookupGetter__ finds a function even when it should not
(similarly for __lookupSetter__)
Patch from Roshan James <roshanj@google.com>.
2007-06-15 12:40:53 +00:00
nboyd%atg.com 5cd27ebf50 There should be no "Generator" constructor. 2007-06-14 18:39:24 +00:00
nboyd%atg.com 5523b1f578 Moving documentation to MDC. Remove from distribution. 2007-06-14 14:01:11 +00:00
nboyd%atg.com a68605e1ca Fix bug Bug 380005: Date to String conversion code in NativeDate class is not
thread-safe.
2007-06-13 17:51:16 +00:00
nboyd%atg.com c7ba9dd641 Fix bug 376632 - Documentation needed for a few of the JSC arguments 2007-06-13 16:58:29 +00:00
nboyd%atg.com 63845ab8bb Fix bug 361067. Script objects loaded through Packages.... may not have their
parent scope set, and need to account for that.
2007-06-13 15:21:20 +00:00
nboyd%atg.com 4452f04a80 Remove unneeded extra semicolon. 2007-06-13 15:04:48 +00:00
nboyd%atg.com 81151517ae Don't perform side effect analysis unless in strict mode. 2007-06-13 14:16:13 +00:00
nboyd%atg.com b06a7b21c2 Don't report strict error messages for statements without side effects at the
top level of a script. Matches SpiderMonkey behavior.
2007-06-13 14:14:17 +00:00
nboyd%atg.com c1d6efaf8c Add support for JavaScript 1.7 Iterators in Rhino. See bug 379377. 2007-06-12 15:34:15 +00:00
nboyd%atg.com 7061c31c34 Fix bug in dumpICode that caused a Kit.codeBug(). 2007-06-07 17:51:09 +00:00
nboyd%atg.com 90ba42b4a7 Fix unfiled bug: we were getting incorrect strict mode warning on const
declarations.
2007-06-07 17:50:19 +00:00
nboyd%atg.com 767fe265fe Errors with generators returning values should be TypeErrors. 2007-06-07 16:01:43 +00:00
nboyd%atg.com cf18d779a4 Fix bug 360964 - Native array push is really slow
Fixed by implementing chaining instead of linear probing.
Patch from Hannes Wallnoefer.
2007-06-07 15:56:37 +00:00
nboyd%atg.com a3a8d2dfe5 Fix bug 383461 - Const redeclaration errors should be TypeErrors, not
SyntaxErrors.
2007-06-07 15:53:41 +00:00
nboyd%atg.com 743b071a82 Fix bug 369342 - LazilyLoadedCtor uses Undefined.instance as default value
instead of Scriptable.NOT_FOUND.
Patch from Hannes Wallnoefer.
2007-06-07 12:02:43 +00:00
nboyd%atg.com 6163dc47dc Fix Bug 373897 - JavaAdapter classes cannot access protected methods in
superclass.
Patch from Hannes Wallnoefer.
2007-06-07 12:00:34 +00:00
nboyd%atg.com 6cd953938b Fix bug 363058 Provide JavaScript-only stack trace from RhinoException.
Contribution from Hannes Wallnoefer <hannes [at] helma [dot] at>.
2007-06-06 19:47:36 +00:00
nboyd%atg.com 44438b3118 Make FEATURE_STRICT_MODE imply FEATURE_STRICT_EVAL and FEATURE_STRICT_VARS. 2007-06-06 15:06:58 +00:00
nboyd%atg.com 7af113046f Fix bug 383356. Patch from Roshan James. 2007-06-06 14:43:32 +00:00
nboyd%atg.com a6099a8648 Implement checks for generators returning values.
Patch from Roshan James, roshanj@google.com.
2007-06-06 14:32:40 +00:00
nboyd%atg.com a0cff8c5f5 Initial checkin for Rhino 1.7. Add JavaScript 1.7 version number.
Initial implementation of 1.7 generators for interpretive mode. See bug 379377.
2007-06-05 18:23:49 +00:00
nboyd%atg.com fe2155898d Classify another failure 2007-06-04 20:33:42 +00:00
nboyd%atg.com afdd2f17be Move skip lists to the testsrc directory. 2007-06-04 18:24:58 +00:00
nboyd%atg.com 2e49ed7463 Fix failure indicated by test js1_5/extensions/regress-351973.js. 2007-06-04 15:53:15 +00:00
nboyd%atg.com fc308affdb Fix bug 274311: Can you add all of the shell commands to the help() menu?
Patch from Roshan James <roshanj@google.com>.
2007-06-04 13:46:58 +00:00
nboyd%atg.com dc21b18581 More work on strict mode.
* Support implemented for checking for inconsistent return usage. Contribution
from Roshan James <roshanj@google.com>.
* Fixed check for assignment in conditional.
2007-06-04 13:18:39 +00:00
nboyd%atg.com 9cb53b39b7 Fix jdk 1.4 compilation. 2007-05-30 16:41:24 +00:00
nboyd%atg.com 58debbb97a Conditional build for jdk15 package. 2007-05-30 16:07:39 +00:00
nboyd%atg.com e8a9c67d1f Java5 varg support:
Java5 varg methods can be called with varg style from JavaScript. The relevant
changes are in MemberBox, NativeJavaClass and NativeJavaMethod. The call to
isVarg() in MemberBox is the one Java5 specific call, which probably needs to
be converted into a JRE version dependent call based on reflection.

Contribution from Ulrike Mueller <umueller@demandware.com>.

See bug 382340.
2007-05-30 15:58:03 +00:00
nboyd%atg.com 1453aab782 Nit: fix comment 2007-05-30 14:07:54 +00:00