summaryrefslogtreecommitdiff
path: root/content/handlers/javascript/duktape
Commit message (Collapse)AuthorAgeFilesLines
* JavaScript: Add KeyboardEvent bindings.Michael Drake2019-12-012-1/+143
|
* Window: set{Timeout,Interval}() default delay 10msDaniel Silverstone2019-08-211-12/+8
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Duktape element binding: Check dom_string_create for error.Michael Drake2019-08-041-0/+6
|
* dukky: Remove unused `dukky_safe_get()`Daniel Silverstone2019-08-021-6/+0
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* dukky: Clean up our stacktrace reportingDaniel Silverstone2019-08-021-31/+6
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Duktape: Hopefully silence issue with %lldDaniel Silverstone2019-08-021-1/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Duktape: Make declaration match definition for memcmp and double_div.Michael Drake2019-08-021-3/+3
|
* Duktape: Make declaration match definition for duk_refzero_check_fast()Michael Drake2019-08-021-1/+1
|
* Duktape: Make declarations match definitions for fastint-enabled functions.Michael Drake2019-08-021-2/+2
|
* Duktape: Make declarations match definitions for duk_raw_read_xxx_beMichael Drake2019-08-021-6/+6
|
* Duktape: Make declarations match definitions for inline functions.Michael Drake2019-08-021-4/+4
|
* Duktape: Prevent clang static analysis.Michael Drake2019-08-021-0/+3
|
* Duktape: Update to 2.4.0 release.Michael Drake2019-08-023-7413/+8430
|
* Document.bnd: Fix cookies getter and implement setterDaniel Silverstone2019-08-021-1/+33
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Dukky: Add and utilise a jserrors categoryDaniel Silverstone2019-08-021-4/+4
| | | | | | | Normal, and verbose logging will now also log all JS errors in order that we stand a chance of debugging things more easily when testing. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window: Provide a little more info on why not EXPOSE()ing some stuffDaniel Silverstone2019-08-021-9/+10
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window: Restructure EXPOSE()d globalsDaniel Silverstone2019-08-021-14/+82
| | | | | | | By reference to the MDN and to Duktape's CLI, expose everything we possibly can on the global object (Window). Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* dukky.c: Correct typo (BUTTOM -> BUTTON)Daniel Silverstone2019-08-011-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Dukky: Support console logging betterDaniel Silverstone2019-08-014-2/+117
| | | | | | | 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>
* dukky: Attempt to make the fallback to HTMLUnknownElement more useful.Daniel Silverstone2019-08-011-4/+7
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Console.bnd: Support attempts to log when Window has goneDaniel Silverstone2019-08-011-1/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* cleanup some javascript documentation commentsVincent Sanders2019-07-121-15/+40
|
* when owning context is destroyed ensure that active js compartment is ↵Vincent Sanders2019-07-121-24/+56
| | | | destroyed first
* add isFinite to global contextVincent Sanders2019-07-011-0/+1
|
* revert 8265b8b66f7072a659dbc0f3e50fe23d6d6a68a1 as ssize_t is not available ↵Vincent Sanders2019-06-251-1/+1
| | | | everywhere
* Duktape: Probably should use ssize_tDaniel Silverstone2019-06-151-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Duktape: Hopefully silence issue with %lldDaniel Silverstone2019-06-152-1/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window.bnd: Suppress some unnecessary stack frame dumpsDaniel Silverstone2019-06-091-3/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window.bnd: Expose isNanDaniel Silverstone2019-06-091-0/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window.bnd: Do not remove in-train callbacksDaniel Silverstone2019-06-091-8/+17
| | | | | | | | | | Sometimes callbacks may be cancelled from within themselves. In that case we need to simply ensure that should the callback be wanted to repeat, we instead stop that so that once the callback is completed we do not attempt to reschedule something which had already been deleted. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Update schedulers return codesVincent Sanders2019-06-081-1/+6
| | | | | The GTK and monkey frontends schedulers now return NSERROR_NOT_FOUND when a caller is using a negative schedule time to remove a callback.
* Document.bnd: createDocumentFragment() unref fragmentDaniel Silverstone2019-06-011-0/+2
| | | | | | | The pushed fragment node holds the reference, so unref it in the end of createDocumentFragment() Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Improve javascript unimplemented bnding documentation generationVincent Sanders2019-05-311-4/+8
|
* Expose NaN on WindowDaniel Silverstone2019-05-251-0/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Add dodgy window method to clear callbacksDaniel Silverstone2019-05-252-1/+39
| | | | | | | | | Until we can determine *how* the compartment isn't cleaning up properly in the duktape context, this will at least mean we don't get unpleasant callback related issues when compartments are reset during browsing. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Log when we finalise window objectsDaniel Silverstone2019-05-251-0/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Use generics for makeListProxy properlyDaniel Silverstone2019-05-251-2/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Use generics for makeListProxy properlyDaniel Silverstone2019-05-251-2/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Remove unnecessary generics magicDaniel Silverstone2019-05-251-1/+0
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Quieten dukky a little more in default log levelsDaniel Silverstone2019-05-061-3/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Use new safe context dumpDaniel Silverstone2019-05-061-9/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Support context dump safely in duktapeDaniel Silverstone2019-05-062-2/+24
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Add some missing unrefsDaniel Silverstone2019-05-061-0/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* complete basic binding documentationVincent Sanders2019-05-061-3/+13
| | | | improve the alert() method parameter handling
* Properly set log levelsDaniel Silverstone2019-05-061-8/+8
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* change content get_source_data interfaces to return uint8_t and size_tVincent Sanders2019-05-051-3/+12
| | | | | previously these interfaces returned char * and unsigned int which was undesirable.
* Use consoleFormatter in Console.bndDaniel Silverstone2019-05-051-6/+27
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Generics: Add consoleFormatterDaniel Silverstone2019-05-051-0/+76
| | | | | | | | In order to support the console logging formatting specification as per https://console.spec.whatwg.org/#logger we need to implement the Formatter(...) algorithm which is easier done within JavaScript Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Dukky: Change from specifically named genericsDaniel Silverstone2019-05-053-8/+18
| | | | | | | | Instead of specifically having to extract each generic by name, such as makeListProxy, instead support the entire generics table and use `dukky_push_generics()` to gain access to it. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Force a GC to ensure old compartment goes awayDaniel Silverstone2019-05-051-1/+5
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>