Skip to content

Needs better error reporting and a better way to pass parameters in to the called code #1

@braindigitalis

Description

@braindigitalis

Hi,

We are using this experimental module in production on PHP 7.0 with Debian Stable, and touch wood it has worked very well for us without hiccup for many months.

I do have a couple of feature requests though. Firstly, there needs to be a better way of passing variable parameters into the called code via Duktape::eval(). Currently, i have to prepend variable definitions into the code i execute. This is ugly and prone to error.

...Speaking of errors, it seems the module only throws one exception type, generic "Exception" class, for all types of error, e.g. parse error, Duktape runtime error, etc, and I have no way to display anything to the user on error than "It went wrong".

If you could fix these two issues, which are kind of related, this would make the module almost perfect for us.

Keep up the good work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions