218 Commits

Author SHA1 Message Date
Gordon Williams
f5cf47911a more arrow functions 2016-09-21 19:10:53 +01:00
Gordon Williams
58ce4a62bb Initial commit of ES6 arrow functions 2016-09-21 18:46:06 +01:00
Gordon Williams
500670b563 oops - fix promise test 2016-09-21 17:52:31 +01:00
Gordon Williams
7dd8ea0a41 Fixed memory leak when automatically converting a simple object to a String
Added ES6 Template Literals
2016-09-21 17:49:22 +01:00
Gordon Williams
a62cfe500c finally solve promise chaining, incl what happens with rejection chaining
Fix 'chained' promises (fix #894)
2016-09-20 18:20:41 +01:00
Gordon Williams
64c428675e Fix out of memory when appending a string to itself - http://forum.espruino.com/conversations/292461 2016-09-07 09:50:53 +01:00
Gordon Williams
acad0fe199 Fix '.on' with long event names 2016-05-27 12:19:45 +01:00
Gordon Williams (u36)
fc260ebd4d stop eval in a switch statement from confusing parsing (Fix #845) 2016-05-24 11:39:17 +01:00
Gordon Williams (u36)
009af6f945 Add uncaughtException event (fix #846) 2016-05-23 16:49:41 +01:00
Gordon Williams (u36)
ee394b4bf3 Added built-in Promise implementation. WARNING: Seems to leak memory from jsiQueueEvents in _jswrap_promise_queueresolve 2016-05-11 16:13:07 +01:00
Gordon Williams (u36)
d51b369238 working promise.all 2016-05-11 15:43:37 +01:00
Gordon Williams (u36)
c7943a7e9d multiple then/catch 2016-05-11 14:55:45 +01:00
Gordon Williams (u36)
d9ca88ed35 initial promise impl 2016-05-11 11:31:58 +01:00
Gordon Williams
3b69cb52d0 Add .removeListener (fix #30) 2016-03-04 15:49:46 +00:00
Gordon Williams (u36)
7570437839 finally fix pipe test 2016-01-19 16:28:11 +00:00
Gordon Williams
5b22705263 test 2015-12-17 10:23:35 +00:00
Gordon Williams
f7277d6b4a fixc test 2015-11-27 09:58:56 +00:00
Gordon Williams
4f9f8a0bfe update crypto test code 2015-11-10 12:26:28 +00:00
Gordon Williams
e4a62cd6ad Merge branch 'master' into AES 2015-11-05 16:31:46 +00:00
Gordon Williams
f1a818f190 Don't store brackets in functions (fix #204) 2015-11-03 16:52:00 +00:00
Gordon Williams
eb48e0c47b add iv support 2015-10-02 15:17:51 +01:00
Gordon Williams
529ab4167d Fix issue where new Array(3.0) wouldn't produce a 3 element array 2015-08-27 10:52:40 +01:00
Gordon Williams
071102b859 Fix Exception throw within catch block (fix #566) 2015-08-26 14:04:10 +01:00
Gordon Williams
d22815172d ensure this works when ReferenceError is thrown by eval 2015-08-13 12:46:48 +01:00
Gordon Williams
0858ecfb5e Actually create ReferenceError for undefined variables 2015-08-12 16:56:59 +01:00
Gordon Williams
976e48eab1 Ensure HTTP is closed even when no data handler (fix #535) 2015-05-11 12:09:01 +01:00
Gordon Williams
3f59263c33 Use jsvUnlockMany to tidy up code and save some space
jsiExecuteEventCallback cal now take an arbitrary number of arguments
            Allow setTimeout/setInterval to take extra arguments (fix #532)
2015-05-06 15:58:29 +01:00
Gordon Williams
4655fc47b2 Make bind reference function internals not copy them. Fix scoped vars in bind (fix #532) 2015-05-06 15:03:50 +01:00
Gordon Williams
5ae24206fb Ensure res.on('close') is called for empty HTTP requests (fix #528) 2015-05-01 15:37:31 +01:00
Gordon Williams
89bf8f8261 Fix instanceof implementation (and fix mem leak) (fix #523) 2015-04-23 11:29:08 +01:00
Gordon Williams
6a61038559 Add 'modules' variable, and set 'this' to 'exports' when parsing a module (fix #520) 2015-04-23 11:08:09 +01:00
Gordon Williams
c44ee3843b Fix issue where Array.sort on big array with identical elements failed (#515) 2015-04-23 10:58:35 +01:00
Gordon Williams (u36)
4c1e9c1194 updated mapInPlace to allow it to unpack bytes as well 2015-04-13 09:25:26 +01:00
Gordon Williams (u36)
579d3ac7c2 Add E.mapInPlace 2015-04-12 19:07:33 +01:00
Gordon Williams
bf40f34e8c Propagate this into eval (fix #513) 2015-03-31 11:44:14 +01:00
Gordon Williams
23225597b0 Allow argument lists in Function() (fix #505) 2015-03-31 09:57:49 +01:00
Gordon Williams
2d98b5bb7e Added more allowed types of whitespace
Added String.prototype.trim() (fix #507)
2015-03-30 16:53:46 +01:00
Gordon Williams
9b67c38669 tweaks to allow a bound function to be bound again 2015-03-30 15:41:59 +01:00
Gordon Williams
7beb971dad Add Function.bind (fix #318) 2015-03-30 15:23:26 +01:00
Gordon Williams
f07c163fc7 Fix crash when out of memory while creating built-in object
Fix continue statement in nested loops (fix #501)
2015-03-04 15:15:30 +00:00
Gordon Williams
ff2871778a Fix issue with graphics fill on PCD8544 LCD 2015-02-17 14:42:51 +00:00
Gordon Williams
b314d15d7a Fix regression where accessing certain member names of an undefined variable would cause a crash (fix #488) 2015-02-02 16:53:41 +00:00
Gordon Williams
17b6c3f333 Add Uint8ClampedArray, remove code duplication in ArrayBuffer (fix #486) 2015-01-29 14:26:53 +00:00
Alexander Brevig
a3a37314ff and make tests pass... 2015-01-16 13:22:36 +01:00
Gordon Williams
b9e9c14024 Remove hashlib from general compile for now - this'll break boards with low flash memory - eg, olimexino,stm32vl 2014-12-17 14:19:04 +00:00
Gordon Williams
c45f3e988d fix arraybuffer test 2014-12-17 11:46:12 +00:00
Mikael Ganehag Brorsson
764b7416e7 Basic testcase for hashlib 2014-12-05 23:18:14 +01:00
Gordon Williams
0962662b0d Added 'net' library with support for sockets 2014-11-20 13:01:04 +00:00
Gordon Williams
cc9cd4a3cc initial socket support - client now working 2014-11-20 11:50:21 +00:00
Gordon Williams
7c4b317dea Fix filled column when fillpoly is off the end of the screen 2014-11-14 14:51:11 +00:00