150 Commits

Author SHA1 Message Date
Gordon Williams
c69b6d6675 Add fake digital pins D0..D7 under linux (helps with testing) 2014-07-10 10:26:16 +01:00
Gordon Williams
1a711d4f3e Fix String.prototype.split with non-string args 2014-07-10 10:18:52 +01:00
Gordon Williams
57c262e32a Fixed exception catching 2014-07-01 15:13:54 +01:00
Gordon Williams
55e843472c fixes for date 2014-06-20 16:48:03 +01:00
Gordon Williams
8e1493e181 Added Date.parse and Date.toString 2014-06-20 16:18:08 +01:00
Gordon Williams
1aee068bb6 Converted parse errors to throw exceptions 2014-06-20 10:27:08 +01:00
Gordon Williams
312cb7f3a6 Fixed memory leak in ''.indexOf('.') 2014-06-20 08:25:46 +01:00
Gordon Williams
7b9195b3bf Fixed memory leak in g.getPixel with arraybuffers 2014-06-19 16:59:21 +01:00
Gordon Williams
355ac00371 Fixed parsing of multiple shifts 2014-06-19 15:48:02 +01:00
Gordon Williams
fdc5fef59c Added Array.prototype.reverse, and also for ArrayBuffers (fix #389) 2014-06-17 12:54:41 +01:00
Gordon Williams
8fa1c554e9 Stop warning about break at the end of 'default' in switch statement 2014-06-16 10:52:30 +01:00
Gordon Williams
a0dee715d3 Fixed massive regression I'd just introduced in Exceptions
Fixed overriding of builtins with other Builtins
Added Date.valueOf
Added 262 test, which checks a lot of standard JS before even starting each small test
2014-06-13 18:22:30 +01:00
Gordon Williams
09a328400c Added throw and try..catch..finally (see #40) 2014-06-13 16:51:27 +01:00
Gordon Williams
f398756e73 Fix parseURL for numeric keys in query string (fix #388) 2014-06-12 18:28:55 +01:00
Gordon Williams
8dd6bd2d30 Fix issue with uninitialised function arguments (fix #391) 2014-06-12 18:15:06 +01:00
Gordon Williams
836b050922 Properly fix Object.getOwnPropertyNames (fix #380) 2014-05-22 16:47:08 +01:00
Gordon Williams
c4c2ee3acb Remove indirection of __proto__ (fix #102) 2014-05-22 16:27:28 +01:00
Gordon Williams
87ac5a1c2b Move 'constructor' into the correct place, be more aware of builtins in prototypes 2014-05-22 13:43:59 +01:00
Gordon Williams
00d2482993 Added Object.getOwnPropertyNames (fix #79, fix #158) although it's not quite right for prototypes yet (see #380) 2014-05-22 11:27:21 +01:00
Gordon Williams
c9bef247f4 oops 2014-05-21 17:57:10 +01:00
Gordon Williams
6db1009b18 Add String.prototype.slice() (fix #376) 2014-05-21 17:53:47 +01:00
Gordon Williams
61140f4b39 Fix String.indexOf when search string is bigger than the string being searched (fix #377) 2014-05-21 17:45:42 +01:00
Gordon Williams
e476c85043 Fix JSON.stringify with circular references (fix #378) 2014-05-21 17:41:17 +01:00
Gordon Williams
ad8e80512a Fixed jsnCallFunction for calls containing doubles on x86 2014-05-20 16:44:18 +01:00
Gordon Williams
0796d33b55 last-minute change to E.openFile 2014-05-15 11:28:38 +01:00
Gordon Williams
3e88ad60d5 simplify file API to simple read/write 2014-05-14 14:35:19 +01:00
Gordon Williams
fd15bbf7e7 more refactoring, make pipe more like node's 2014-05-14 13:41:35 +01:00
Gordon Williams
cbf3fc1c4f Changed to using 'File' constructor for files, added pipe command to file itself 2014-05-14 12:23:12 +01:00
Gordon Williams
243a58ddf6 Merge branch 'master' into streaming_file_api 2014-05-09 14:12:26 +01:00
Ray Bellis
7645c53f89 Merge https://github.com/espruino/Espruino into ArrayLength 2014-05-06 15:01:41 +01:00
Ray Bellis
5d5747dda8 use a real length counter in array objects
NB - still TODO:
- sorting on sparse arrays
- setting of array.length
- Object.keys() should return strings, not numbers
2014-05-06 14:52:56 +01:00
Gordon Williams
8f1462e5e5 Fix Instance properties overwrite prototype (fix #360) 2014-05-06 12:26:04 +01:00
Gordon Williams
54e7a68c9d Merge branch 'master' into streaming_file_api 2014-05-06 12:01:42 +01:00
Gordon Williams
e550dc5b01 Merge branch 'master' of github.com:espruino/Espruino 2014-05-06 12:00:26 +01:00
Gordon Williams
fb3647f94b Memory leak when defining functions (fix #359) 2014-05-06 12:00:01 +01:00
Gordon Williams
c012402da5 Memory leak when defining functions (fix #359) 2014-05-06 11:58:29 +01:00
Ray Bellis
7e67c5aa17 Added the ES5 functions Array.prototype.filter, .every and .some 2014-05-03 09:35:52 +01:00
Gordon Williams
7e35e87036 Merge branch 'master' into streaming_file_api
Conflicts:
	Makefile
2014-05-02 10:08:15 +01:00
Gordon Williams
29f7eed9f0 Fix String.split issue with last element (fix #352) 2014-04-30 11:20:44 +01:00
Gordon Williams
22f6c48f34 Merge branch 'master' of https://github.com/cephdon/Espruino into cephdon-master 2014-04-29 11:14:43 +01:00
Gordon Williams
2160e07e4c Add ES6 Array.prototype.fill (fix #317) 2014-04-28 18:26:44 +01:00
Gordon Williams
32d80909c1 Fix deleting the last element in array (fix #346) 2014-04-28 16:50:51 +01:00
Gordon Williams
127563c1c0 Add Array.shift/unshift (fix #342) 2014-04-28 16:37:15 +01:00
Gordon Williams
bfd1144a28 Make Graphics.drawImage draw bottom line of pixels (fix #329) 2014-04-28 16:16:04 +01:00
Gordon Williams
d4c0e08778 Fix assert fail when deleting a property that doesn't exist (fix #344) 2014-04-28 15:46:27 +01:00
Gordon Williams
df71b0c049 Fix issues with (and hasOwnProperty) 2014-04-23 14:35:03 +01:00
Gordon Williams
3b5c45f55c Fixed problem when accessing an array with a string in a variable 2014-04-23 12:52:21 +01:00
cephdon
1783cfd980 Updated the style of code in jswrap_fs.c to conform with the bracing and
layout preferred in the Espruino codebase.
Added tests for the FS api.
2014-04-20 10:16:43 -07:00
Gordon Williams
c516ab661e Accessing an undefined array/object element now doesn't create it (fix #63) 2014-04-14 19:20:19 +01:00
Gordon Williams
ceabbbf39c Added E.toArrayBuffer for fast string->array conversion
Changed Graphics.drawImage to work on MSB-first images, as this seems to be what most platforms expect
2014-04-11 15:44:10 +01:00