64 Commits

Author SHA1 Message Date
jumjum123
201535cf7c Added wildcard for blacklist
Used to blacklist full class
2019-04-09 11:28:26 +00:00
Gordon Williams
b0ea012c82 Allow built-in objects to be created with new X() 2018-11-23 12:28:30 +00:00
Gordon Williams
7ae9af8f6c Build tools 2018-06-15 15:34:03 +01:00
Gordon Williams
67b2123bdb Add ArrayBuffer.byteLength property (fix #1374) 2018-04-16 09:22:23 +01:00
Gordon Williams
b78888c9e1 Simplify data returned by process.env
Add process.env.MODULES - to contain a list of the libraries provided in the firmware by require
2018-02-07 14:22:52 +00:00
Gordon Williams
59bc2019b3 formatting tweak 2018-02-06 12:01:50 +00:00
Gordon Williams
f3ba1023ff Allow JS modules to be built-in by adding files to JSMODULESOURCES 2018-01-16 13:14:38 +00:00
Gordon Williams
b80ec646f2 reusing a bit more code in jswFindBuiltInFunction 2017-12-15 11:21:18 +00:00
Gordon Williams
aba4d91d53 reusing a bit more code in jswFindBuiltInFunction 2017-12-15 11:14:17 +00:00
Gordon Williams
6e08b61686 tidy up jswGetSymbolListForObject code 2017-12-15 11:06:24 +00:00
Gordon Williams
9f4e747e04 sanity check on args - helps #1271 2017-12-14 17:05:56 +00:00
Gordon Williams
6cc0d46eb9 Fix tab complete for Pins (fix #1213) 2017-08-14 13:04:54 +01:00
Gordon Williams
a70032741d Move LED + BTN definitions to Symbol Table (allows autocomplete) 2016-10-17 15:52:42 +01:00
Juergen Marsch
f293a5d579 Blacklist extended for Javascript commands
Javascrip commands have no class information in JSON description. This
was not handled in old version.
In this version an artificial class "--" is used to support blacklisting
them.
If you don't want to have console.log or eval, for whatever reason, this
can be blacklist now.
2016-07-22 14:02:05 +02:00
Juergen Marsch
210797cedf Add options for make process
Adds customizing options, see description in makefile.
Idea is to support userdefined make of firmware
- GENDIR
- SETDEFINES
- UNSUPPORTEDMAKE
- PROJECTNAME
- BLACKLIST
- VARIABLES
2016-06-17 11:36:59 +02:00
Thorsten von Eicken
949cd7d33b final fix for jswsym strcmp; change flash magic 2016-04-20 21:40:57 -07:00
Thorsten von Eicken
1ae38015e5 collapse two versions of jswBinarySearch into one 2016-04-19 19:42:18 -07:00
Thorsten von Eicken
2c8c866f1b esp8266: exception code cleanup; jswsym code cleanup; eliminate compiler warnings 2016-04-17 09:46:32 -07:00
Thorsten von Eicken
4885b28bf2 clean-up esp8266 PR to move symbols to flash 2016-04-17 09:11:12 -07:00
Thorsten von Eicken
2c3f6f76b7 esp8266: small tweaks to moving jswsyms to flash 2016-04-16 23:28:10 -07:00
Thorsten von Eicken
1b4c8c691e move wrapper symbol tables to flash on esp8266; bump to 1600 jsvars 2016-04-16 11:57:06 -07:00
Gordon Williams
b3fbc05def autocomplete for properties 2015-10-22 19:08:58 +01:00
Gordon Williams
6d1495ddce and this is why I don't like python 2015-10-20 16:03:26 +01:00
Neil Kolban
d322cc7d67 Change print "XXX" to print("XXX")
Change the python scripts to add parenthesis to print statements.
2015-08-27 14:19:19 -05:00
Gordon Williams
070b44ed9f Added 'global' built-in value 2015-02-10 15:58:41 +00:00
Gordon Williams
32918505e2 Ensure that we only create as many Serial/I2C/etc items in Symbol table as we need (fix #453) 2014-12-19 11:53:51 +00:00
Gordon Williams
acb068e965 Remove libraries from root scope (fix #463) 2014-12-11 15:51:50 +00:00
Gordon Williams
6123df4f36 Store JSWAT_EXECUTE_IMMEDIATELY in a way that will fit in 16 bit function decls 2014-07-22 11:07:48 +01:00
Gordon Williams
554e6b5509 Switch native function decls from 32 bits to 16 2014-07-21 17:23:04 +01:00
Gordon Williams
bad8787371 Fix references to this - you can now write this["LED1"] 2014-07-17 08:28:37 +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
8e57136a28 fix indentation 2014-06-13 17:37:38 +01:00
Gordon Williams
836b050922 Properly fix Object.getOwnPropertyNames (fix #380) 2014-05-22 16:47:08 +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
ef4f41f758 attempted hacky fix 2014-05-15 14:01:50 +01:00
Gordon Williams
02e186b1ef Fix issue initialising builtin objects 2014-05-14 18:09:45 +01:00
Gordon Williams
c06d630e65 added jswGetSymbolListForObject 2014-05-14 09:11:13 +01:00
Gordon Williams
6f6f161355 small speed boost 2014-05-14 08:46:00 +01:00
Gordon Williams
bf17ff2ac1 misc optimisation 2014-05-13 17:39:38 +01:00
Gordon Williams
9d45aba2f0 massive build_jswrapper cleanup 2014-05-13 17:32:11 +01:00
Gordon Williams
850cca8688 first try at symbol table - needs tidying 2014-05-13 17:28:19 +01:00
Gordon Williams
4962e6ea45 Tiny up python wrapper. This *almost* works - SPI seems glitchy though 2014-04-07 17:19:21 +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 (u36)
b4a9dcf937 fix memory leak 2014-04-02 07:58:25 +01:00
Gordon Williams
d6c47bf044 Ooops. Fix parsing of pin names 2014-03-31 18:25:50 +01:00
Gordon Williams
a5f2f2def0 attempt at reducing code size for checks 2014-03-31 16:49:10 +01:00
Gordon Williams
2d629a0e5e more bugfixing 2014-03-31 14:59:30 +01:00
Gordon Williams
8dc36ba1e4 reworked tests for built-in objects 2014-03-31 14:29:33 +01:00
Gordon Williams
fed2e09f89 Support for generate_full and also fields 2014-03-31 12:40:17 +01:00
Gordon Williams
75cb8b791a Remove JsVarName (will require later change to make function decls re-use existing functions), and other tweaks - '[1,2,3].forEach(console.log)' now works 2014-03-31 11:36:54 +01:00