diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-01 21:40:54 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-01 21:40:54 +0100 |
commit | f365e75407bc9964c09613f80de0b64eb6055975 (patch) | |
tree | ae52154354474999b9e4fabbf6304fdeec3efb15 /content/handlers/javascript/duktape/Makefile | |
parent | bb3e0e51f1cbae2134b7891c44a24bccc2f7f255 (diff) | |
download | netsurf-f365e75407bc9964c09613f80de0b64eb6055975.tar.gz netsurf-f365e75407bc9964c09613f80de0b64eb6055975.tar.bz2 |
Dukky: Support console logging better
Add a polyfill for Array.from(), and fix the console formatter so that
it won't keep exploding. This should improve matters in the tests.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/handlers/javascript/duktape/Makefile')
-rw-r--r-- | content/handlers/javascript/duktape/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/content/handlers/javascript/duktape/Makefile b/content/handlers/javascript/duktape/Makefile index 7c9e60a8b..d15b71291 100644 --- a/content/handlers/javascript/duktape/Makefile +++ b/content/handlers/javascript/duktape/Makefile @@ -4,7 +4,10 @@ # Included by javascript/Makefile # -content/handlers/javascript/duktape/dukky.c: $(OBJROOT)/duktape/binding.h $(OBJROOT)/duktape/generics.js.inc +content/handlers/javascript/duktape/dukky.c: \ + $(OBJROOT)/duktape/binding.h \ + $(OBJROOT)/duktape/generics.js.inc \ + $(OBJROOT)/duktape/polyfill.js.inc BINDINGS := $(wildcard content/handlers/javascript/duktape/*.bnd) @@ -15,6 +18,13 @@ $(OBJROOT)/duktape/generics.js.inc: content/handlers/javascript/duktape/generics $(Q)xxd -i $< $@.tmp $(Q)sed -e 's/content_handlers_javascript_duktape_generics_js/generics_js/' $@.tmp > $@ +# Generator for the C include representing the polyfill.js +$(OBJROOT)/duktape/polyfill.js.inc: content/handlers/javascript/duktape/polyfill.js + $(Q)$(MKDIR) -p $(OBJROOT)/duktape + $(VQ)echo " XXD: $<" + $(Q)xxd -i $< $@.tmp + $(Q)sed -e 's/content_handlers_javascript_duktape_polyfill_js/polyfill_js/' $@.tmp > $@ + # ensure genbind generates debugging files GBFLAGS+=-D |