summaryrefslogtreecommitdiff
path: root/content/handlers/javascript/duktape
Commit message (Collapse)AuthorAgeFilesLines
* use attributes to indicate switch fall through instead of commentsVincent Sanders2024-03-051-1/+1
|
* Avoid integer types with platform dependent sizeDeltaVonNeumann2023-06-171-3/+3
|
* (Element): Honour [SameObject] for ::classList getterDaniel Silverstone2022-11-271-10/+20
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* DOMTokenList: Add support and testing for thisDaniel Silverstone2022-11-275-0/+248
| | | | | | | | | | | | We add both DOMTokenList and DOMSettableTokenList and introduce polyfills for stringifying it until nsgenbind can do that. We also bring in a test to demonstrate all that we have. Note: This does not implement the extra methods that exist according to MDN, we may need a polyfill to bring that up to snuff. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* (duktape): Clear some warnings by adding base data to css rule and stylesheetDaniel Silverstone2022-11-263-0/+48
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* js: console: Fix argument type for formatting functionMichael Drake2022-10-231-1/+1
|
* js: image data: Avoid int overflow before size_t conversionMichael Drake2022-10-231-1/+1
|
* Duktape: Prevent clang static analysis.Michael Drake2022-05-291-0/+3
|
* Duktape: Update to 2.7.0 release.Michael Drake2022-05-293-11565/+15231
|
* Bitmap API: Clean up creation flags.Michael Drake2022-03-241-3/+3
|
* dukky: Fix assignment in assertDaniel Silverstone2020-10-031-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Console: Do not try and log through a closed down windowDaniel Silverstone2020-10-021-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* initial implementation of split messages in cVincent Sanders2020-06-151-6/+0
| | | | functional but the compression switch still needs implementing
* implement a minimal xxd for builds to remove external dependancyVincent Sanders2020-06-031-4/+10
|
* canvas: Implement fully correct putImageData featuresDaniel Silverstone2020-05-241-48/+120
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS dom event binding: Squash leak of string.Michael Drake2020-05-241-1/+1
|
* Canvas: Do not overrun destination bitmap during creationDaniel Silverstone2020-05-241-5/+6
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* canvas: Support changing canvas size at runtimeDaniel Silverstone2020-05-232-8/+143
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Canvas: Move bitmap management to the 2D render contextDaniel Silverstone2020-05-231-0/+162
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* CanvasRenderingContext2D: More verbose input validation error messageDaniel Silverstone2020-05-221-1/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* javascript: Support Canvas to a basic levelDaniel Silverstone2020-05-225-2/+314
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* improve html content handler private headersVincent Sanders2020-05-022-2/+2
|
* dukky: Don't allow js_exec on a thread pending destructionDaniel Silverstone2020-04-261-0/+5
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* dukky: Various checks for win being NULLDaniel Silverstone2020-04-262-1/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window: Do not get stuck if callbacks are in-train during compartment closeDaniel Silverstone2020-04-251-1/+30
| | | | | | | | | When we close the JS compartment we try and cancel all callbacks so that they do not fire after the compartment is closed. However if we have in-train callbacks, they can gum up the closedown and so we need to check and if we've done all we can, we break out of the callback removal loop. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* add bindings for canvas width and heightVincent Sanders2020-04-242-1/+19
|
* Window: Add flag to ensure we don't set timeouts after closeDaniel Silverstone2020-03-221-0/+14
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS: Add concept of js_closethreadDaniel Silverstone2020-03-221-0/+20
| | | | | | | In order to better model content close vs destroy, add the concept of closing a thread to the JS interface. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Dukky: Make heaps refcounted tooDaniel Silverstone2020-03-221-2/+18
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Dukky: Add refcounting to threadsDaniel Silverstone2020-03-211-5/+59
| | | | | | | | | In order to cope with threads which manage to navigate entirely while executing (sadly possible) we need to handle the possibility that a thread is destroyed by the browser but still needs to live until it returns from whatever exec it was doing at the time. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Dukky: Upgrade dukky binding to support new heap/thread splitDaniel Silverstone2020-03-213-95/+121
| | | | | | | | Update the duktape bindings and dukky interface to support the new JS heap/thread split. Heaps may have multiple active threads though in general there will only be 2 at a time. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS: Remove unused slow script callbackDaniel Silverstone2020-03-211-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Node: nodeValue setter should return value set into nodeDaniel Silverstone2020-02-231-1/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* dukky: Guard pointless work for deep debugDaniel Silverstone2020-02-231-2/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS: it's Infinity not infinityDaniel Silverstone2020-02-211-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS: Add Element::attributes and NamedNodeMap to handle itDaniel Silverstone2020-02-213-0/+103
| | | | | | | This is a *very* rudimentary implementation lacking most of the functionality of NamedNodeMap but it's enough to get jQuery 1.12.4 up. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS Generics: Add a NodeMap proxy builderDaniel Silverstone2020-02-211-0/+23
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Element: support innerHTMLDaniel Silverstone2020-02-211-0/+123
| | | | | | | | To get us further along the JavaScript pathway, support the getter and setter for innerHTML. The getter always returns an empty string for now, but the setter works. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS: Add DOMImplementation::createHTMLDocumentDaniel Silverstone2020-02-213-0/+142
| | | | | | This was the last major thing blocking basic jQuery support Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* dukky_push_event: Enable KeyboardEvent specialisation.Michael Drake2019-12-011-1/+31
|
* 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
|