810 Commits

Author SHA1 Message Date
Gordon Williams
26254d0fea ArrayBuffer Graphics now supports 2 and 4 bits as well as 1,8,16,24,32 (fix #301) 2014-04-07 13:23:56 +01:00
Gordon Williams
e88141c76d Callback graphics now works even without a fillRect implementation (fix #295) 2014-04-07 13:11:34 +01:00
Gordon Williams
40a989c25c Make Array.join ignore null values (fix #289) 2014-04-07 12:56:55 +01:00
Gordon Williams
5c491c38c9 whoops. fix memory leak, and fix bug in nicer way 2014-04-07 12:37:48 +01:00
Gordon Williams
7726e3762d Fix == issues where only one argument is an array (fix #283) 2014-04-07 12:34:39 +01:00
Gordon Williams
d44769d576 Merge branch '283' of https://github.com/rwaldron/Espruino into rwaldron-283 2014-04-07 12:27:44 +01:00
Gordon Williams
27acdedebc Fix array access with booleans (fix #290) 2014-04-07 12:17:59 +01:00
Gordon Williams
151d00b015 Revert "Merge pull request #300 from rwaldron/290"
This reverts commit b955373ddb472002876efe8abddc7236205b481f, reversing
changes made to 27a0cfa7b963b5fb76c5123e72cce73ec8227d9b.
2014-04-07 12:03:35 +01:00
Gordon Williams
b955373ddb Merge pull request #300 from rwaldron/290
Don't treat Boolean values as Numeric. Fixes gh-290
2014-04-07 11:59:36 +01:00
Gordon Williams
27a0cfa7b9 Support floating-point literals without a leading 0 - eg '.5' (fix #296) 2014-04-07 11:32:29 +01:00
Gordon Williams
0df83db48a improve docs 2014-04-07 11:23:44 +01:00
Gordon Williams
0900e6072c Fix toString crash for large numbers 2014-04-07 11:23:34 +01:00
Gordon Williams
a6b1c4a4d4 Merge pull request #299 from pbitty/add_espruino_to_gitignore
add /espruino to .gitignore
2014-04-07 09:36:54 +01:00
Gordon Williams
94221f82a2 Merge pull request #298 from pbitty/fix_array_concat
fix Array.concat() bug
2014-04-07 08:39:49 +01:00
Rick Waldron
48adf2ead8 Don't treat Boolean values as Numeric. Fixes gh-290
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2014-04-06 20:02:16 -04:00
Paulo Bittencourt
bfcd820fc5 fix Array.concat() bug
Fixes #288.
2014-04-06 19:50:13 -04:00
Paulo Bittencourt
993941581d add /espruino to .gitignore 2014-04-06 18:57:57 -04:00
Rick Waldron
4a50498c58 Abstract comparison "==" issues. Fixes gh-283
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2014-04-05 12:34:44 -04:00
Gordon Williams
23b2783bb8 Merge pull request #282 from rwaldron/281
Fixes incorrect expression evaluation. Fixes gh-281
2014-04-05 08:57:14 +01:00
Rick Waldron
b76b2cd7f6 Fixes incorrect expression evaluation. Fixes gh-281
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2014-04-04 17:30:04 -04:00
Gordon Williams
19677e9281 new version 2014-04-04 11:33:16 +01:00
Gordon Williams
b4c34100ec Switch back to -O3, builds were unreliable before 2014-04-04 08:42:42 +01:00
Gordon Williams
7c7f174b76 Fix custom font memory leak 2014-04-04 08:41:18 +01:00
Gordon Williams
318142c0d7 Clear variable data just in case this was causing the odd characters to appear 2014-04-04 08:37:24 +01:00
Gordon Williams
a92ea2e529 Added nativeCall, which allows C/Assembler to be called from JavaScript 2014-04-03 15:05:30 +01:00
Gordon Williams
5495d6633e Finally accept defeat and switch to '-Os' for Espruino compile 2014-04-03 13:06:31 +01:00
Gordon Williams
249cbaa4ed Fix comparison of integers with empty string/whitespace+number 2014-04-03 12:49:29 +01:00
Gordon Williams
f0a86d1d86 Fix equality checks with null 2014-04-03 12:25:31 +01:00
Gordon Williams
24558e6f7e Fix issues with NaN, negative zero, and Math.round 2014-04-03 12:18:37 +01:00
Gordon Williams
f0d97eeff3 Make parseInt(..., >36) return NaN
Make Number.toString() use lowercase chars for hex
2014-04-03 11:47:25 +01:00
Gordon Williams
2146266561 Fix behaviour - it searches keys, not values 2014-04-03 11:43:36 +01:00
Gordon Williams
137c553798 Fix non-standard ArrayBuffer behaviour when constructing an ArrayBuffer from an ArrayBufferView 2014-04-03 11:38:44 +01:00
Gordon Williams
4864e72509 Removed non-standard Integer.valueOf - use A.charCodeAt(0) 2014-04-03 11:37:43 +01:00
Gordon Williams
4e8ec7e946 remove debug code 2014-04-03 11:28:50 +01:00
Gordon Williams
a5224c9d35 Fix hardware SPI regression (getting out of sync after ArrayBuffer write) 2014-04-03 10:59:17 +01:00
Gordon Williams
8e1adb0c37 Fix DEVICE_IS_XXX defines (fix SW SPI regression) 2014-04-03 10:04:08 +01:00
Gordon Williams
386bc905c2 Fix Math.round regression and add checks to ensure it can't happen again 2014-04-03 09:54:24 +01:00
Gordon Williams
19f18acd88 Fix issue where ++ didn't convert to a number 2014-04-02 13:43:50 +01:00
Gordon Williams
92b7825a59 Fix issue when constructing an ArrayBuffer with a floating point length 2014-04-02 12:36:23 +01:00
Gordon Williams (u36)
b4a9dcf937 fix memory leak 2014-04-02 07:58:25 +01:00
Gordon Williams
78c341792f remove un-needed functions 2014-04-01 11:06:57 +01:00
Gordon Williams
f6f22bd81d Add checks for device - because now functions can be applied to anything 2014-04-01 09:21:07 +01:00
Gordon Williams
74d4bc574c fix uninitialised string issue 2014-03-31 18:36:41 +01:00
Gordon Williams
d6c47bf044 Ooops. Fix parsing of pin names 2014-03-31 18:25:50 +01:00
Gordon Williams
41a54f8b4b Add software SPI - fix #41 2014-03-31 18:25:33 +01:00
Gordon Williams
10e9c15772 Add Object.hasOwnProperty (although it does have some false positives) - #24 2014-03-31 17:30:50 +01:00
Gordon Williams
95e2a59a72 Add Object.valueOf - help with #187 2014-03-31 17:10:10 +01:00
Gordon Williams
6798311842 You can now reference built-in functions. eg. [1,2,3].map(Math.sqrt) 2014-03-31 17:09:34 +01:00
Gordon Williams
a5f2f2def0 attempt at reducing code size for checks 2014-03-31 16:49:10 +01:00
Gordon Williams
c8ff078c78 Merge branch 'master' into native_functions 2014-03-31 16:09:09 +01:00