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
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
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
nboyd%atg.com
1d740c5068
Fix Bug 508771 - Date.parse should attempt to parse string as toISOString format first
...
Patch from Raphael Speyer
git-svn-id: svn://10.0.0.236/trunk@258122 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-15 21:53:30 +00:00
nboyd%atg.com
75306af5a5
Fix Bug 508527 - missing array elements contribute to the length of the array
...
Patch by Raphael Speyer
git-svn-id: svn://10.0.0.236/trunk@258121 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-15 21:34:52 +00:00
nboyd%atg.com
27b9544d78
Make Object.defineProperty work for builtin properties such as Math.pow, or JSON.stringify
...
Patch from Raphael Speyer
git-svn-id: svn://10.0.0.236/trunk@258024 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-09 02:57:40 +00:00
nboyd%atg.com
eea8cc1e97
Made getOwnPropertDescriptor use the actual attributes for builtins, rather
...
than the isMethod heuristic.
Patch from Raphael Speyer.
git-svn-id: svn://10.0.0.236/trunk@258016 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-08 20:56:57 +00:00
nboyd%atg.com
6d18c3d6df
For getters and setters of accessor propeties, make being absent equivalent
...
to having value undefined
As per 8.6.1 Table 3.
Patch from Raphael Speyer.
git-svn-id: svn://10.0.0.236/trunk@257969 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 14:04:34 +00:00
nboyd%atg.com
5146e4334f
Set the prototype of bound functions to Function.prototype
...
Patch from Raphael Speyer
git-svn-id: svn://10.0.0.236/trunk@257820 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 12:22:17 +00:00
nboyd%atg.com
929d1b5bcd
Fix Bug 506436 - Implement Function.bind
...
Patch from Raphael Speyer
git-svn-id: svn://10.0.0.236/trunk@257816 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 02:49:17 +00:00
nboyd%atg.com
2834b2b86d
Ensure that getters/setters defined through defineProperty are actually used
...
Patch from Raphael Speyer
git-svn-id: svn://10.0.0.236/trunk@257805 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-27 14:59:56 +00:00
nboyd%atg.com
f4d3d29393
Fix Bug 505524 - Implement Date.toJSON
...
Patch from Raphael Speyer
git-svn-id: svn://10.0.0.236/trunk@257801 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-27 02:04:23 +00:00
nboyd%atg.com
5aa3abe357
Fix Bug 505463 - Implement Date.toISOString
...
Patch from Raphael Speyer
git-svn-id: svn://10.0.0.236/trunk@257798 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-26 02:35:38 +00:00
nboyd%atg.com
0c8a93379b
Fix Bug 505890 - Implement String.trim
...
Patch from Raphael Speyer
git-svn-id: svn://10.0.0.236/trunk@257796 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-25 12:29:03 +00:00
nboyd%atg.com
cdfa99a296
Fix Bug 505862 - Implement Array.isArray
...
Patch from Raphael Speyer
git-svn-id: svn://10.0.0.236/trunk@257784 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-24 01:26:14 +00:00
nboyd%atg.com
dde158ec11
Allow Object.create to accept null as a first argument
...
git-svn-id: svn://10.0.0.236/trunk@257740 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-21 00:35:28 +00:00
nboyd%atg.com
4ae1785e0c
Make getOwnPropertyDescriptor and defineProperty work property for arrays.
...
Allows getting and setting attributes on index properties when the array is in
dense mode.
git-svn-id: svn://10.0.0.236/trunk@257702 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-15 15:47:58 +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
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
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
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
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
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
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
nboyd%atg.com
bf5b40f09a
New regression test.
...
git-svn-id: svn://10.0.0.236/trunk@256394 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 18:31:54 +00:00
nboyd%atg.com
7cb25f0b8d
Fix and unit test for for Bug 473761 - Bad XML new property creation
...
git-svn-id: svn://10.0.0.236/trunk@255890 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 17:45:10 +00:00
nboyd%atg.com
a442ef0308
Add ability for embeddings to set options on the XML implementation.
...
git-svn-id: svn://10.0.0.236/trunk@255805 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-14 13:31:23 +00:00
nboyd%atg.com
3301cbc3b3
Fix Comment Bug 393794 - __proto__ not set when used in object literal
...
git-svn-id: svn://10.0.0.236/trunk@255690 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 02:22:16 +00:00
nboyd%atg.com
8a58a243f9
Fix bug 434041: NaN added to an object when optimization is used
...
git-svn-id: svn://10.0.0.236/trunk@255683 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-01 22:02:53 +00:00
nboyd%atg.com
a384b8837d
Regression test.
...
git-svn-id: svn://10.0.0.236/trunk@253777 18797224-902f-48f8-a5cc-f745e15eee43
2008-08-22 16:50:10 +00:00
nboyd%atg.com
c2c259b710
Bug was "works for me", but still nice to have a test
...
git-svn-id: svn://10.0.0.236/trunk@253217 18797224-902f-48f8-a5cc-f745e15eee43
2008-07-23 16:51:13 +00:00
nboyd%atg.com
cf1795ce1d
Fix bug 442922: New E4X Dom based XML implementation is not serializable
...
git-svn-id: svn://10.0.0.236/trunk@252798 18797224-902f-48f8-a5cc-f745e15eee43
2008-07-02 14:56:50 +00:00
nboyd%atg.com
71b234b6de
Ensure Counter example works as documented
...
git-svn-id: svn://10.0.0.236/trunk@252633 18797224-902f-48f8-a5cc-f745e15eee43
2008-06-27 12:53:47 +00:00
nboyd%atg.com
7e08e566c5
regression test for 429121
...
git-svn-id: svn://10.0.0.236/trunk@252630 18797224-902f-48f8-a5cc-f745e15eee43
2008-06-27 12:22:16 +00:00
nboyd%atg.com
a6082db9b8
Fix bug 433878: minor glitch when decompiling 'let' statements
...
Once I ran this through the regression tests, this ended up being more complicated unfortunately. There was a missing error check all along, but the previous bug caused us to pass a negative test, so I had to implement that to get everything to pass.
git-svn-id: svn://10.0.0.236/trunk@251678 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-16 21:13:02 +00:00
nboyd%atg.com
d86b2052f3
Fix warning for use of cx.enter(), move regExpParse.doctest
...
git-svn-id: svn://10.0.0.236/trunk@251251 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-06 12:43:29 +00:00
nboyd%atg.com
698fc5d9c2
Regression test for Matrix example
...
git-svn-id: svn://10.0.0.236/trunk@251164 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-04 15:24:55 +00:00
nboyd%atg.com
c236f677ed
Had already fixed bug 368019 from another source, mark it fixed and
...
rename regression test
git-svn-id: svn://10.0.0.236/trunk@251100 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-02 12:57:39 +00:00
nboyd%atg.com
58941333be
Fix bug 419090: Object properties list in different (hash?) order than entered
...
Connect slots in a linked list to keep track of the insertion order.
git-svn-id: svn://10.0.0.236/trunk@251026 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-01 12:36:40 +00:00
nboyd%atg.com
78cc6091d5
Parsing of regexp boundaries was a little too dumb in TokenStream.readRegExp.
...
git-svn-id: svn://10.0.0.236/trunk@250060 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-11 14:41:44 +00:00
nboyd%atg.com
cd520781bf
Add code and test for canonicalizing the output of java.lang.Object.toString
...
for the purposes of doctest.
git-svn-id: svn://10.0.0.236/trunk@248461 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-24 00:09:59 +00:00
nboyd%atg.com
dc30f073a5
First take at a doctest function like the Python doctest, with JUnit driver
...
and a few tests.
git-svn-id: svn://10.0.0.236/trunk@246950 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-03 22:20:35 +00:00