[mw-devel] [Git][arthur/mw][master] js-duk: Ensure is_js() has some stack for the function name
Andrew Price
welshbyte at sucs.org
Sat Oct 6 12:33:07 BST 2018
Andrew Price pushed to branch master at Justin Mitchell / mw
Commits:
73ea3bbe by Andrew Price at 2018-10-06T12:31:16+01:00
js-duk: Ensure is_js() has some stack for the function name
- - - - -
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
@@ -848,6 +848,7 @@ int is_js(char *name)
{
int ret = 0;
+ duk_require_stack(ctx, 1);
if (duk_get_global_string(ctx, name) && duk_is_function(ctx, -1))
ret = 1;
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/73ea3bbe5a8964ec5c0ebb766536a5020df9e52c
--
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/73ea3bbe5a8964ec5c0ebb766536a5020df9e52c
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/03f2778b/attachment.html>
More information about the mw-devel
mailing list