evgenyneu / js-evaluator-for-android

A library for running JavaScript in Android apps.
MIT License
487 stars 84 forks source link

Naive ECMAscript 2015 (ES6) evaluator. #32

Closed sander90 closed 7 years ago

sander90 commented 7 years ago
    JsEvaluator jsEvaluator = new JsEvaluator(this.jsContent);
    jsEvaluator.callFunction("\n" +
            "function parse_ir(prot_str=8){\n" +
            "    return prot_str\n" +
            "}", new JsCallback() {
        @Override
        public void onResult(String s) {
            Log.d("sander","js call : " + s);
        }
    },"parse_ir","123");

No return value

evgenyneu commented 7 years ago

Hi @sander90, thanks for your feedback. Could you clarify what exactly is this problem so I can understand it?

evgenyneu commented 7 years ago

Closing the issue. Feel free to reopen if needed.