[mw-devel] [Git][arthur/mw][master] js-duk: Pop non-function onevent elements in js_handle_event()
Andrew Price
welshbyte at sucs.org
Sat Oct 6 13:51:00 BST 2018
Andrew Price pushed to branch master at Justin Mitchell / mw
Commits:
033b7616 by Andrew Price at 2018-10-06T13:50:14+01:00
js-duk: Pop non-function onevent elements in js_handle_event()
- - - - -
1 changed file:
- src/client/js-duk.c
Changes:
=====================================
src/client/js-duk.c
=====================================
--- a/src/client/js-duk.c
+++ b/src/client/js-duk.c
@@ -785,6 +785,7 @@ int js_handle_event(struct mwevent *ev)
duk_int_t t = duk_get_type(ctx, -1);
fprintf(stderr, "mwjs warning: mw.onevent[%u] is of type %d, "
"not a function\n", i, t);
+ duk_pop(ctx);
continue;
}
if (js_push_event(ev) != 0) {
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/033b761681127713c0e6a0d392a8328938341506
--
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/033b761681127713c0e6a0d392a8328938341506
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20181006/db9c94f7/attachment.html>
More information about the mw-devel
mailing list