[quickjs-devel] Re: Sept 1 release: missing JS_EvalBinary

  • From: Ondřej Jirman <deibeemoocheuguhumoh@xxxxxx>
  • To: quickjs-devel@xxxxxxxxxxxxx
  • Date: Sun, 8 Sep 2019 21:19:48 +0200

Hi,

On Sun, Sep 08, 2019 at 09:49:47PM +0300, Guido Grassel wrote:

Hi!

Thanks for making QuickJS. Its awesome!

I am attempting to upgrade some of my embedding C++ application code from 
earlier to Sept 1 release.
I am missing the JS_EvalBinary (both definition and declaration).
It's mentioned in the documentation, though, so I hope you did not drop the 
feature.

Check the diff between this and the previous release, you'll need to replace
this function with JS_ReadObject(ctx, data, size, JS_READ_OBJ_BYTECODE) and 
potentially followed by JS_EvalFunction, depending on what exactly you're
trying to do.

There's an example in quickjs-libc.c's js_std_eval_binary.

regards,
        o.

Cheers
- Guido




Other related posts: