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

  • From: Guido Grassel <guido@xxxxxxxxxxx>
  • To: quickjs-devel@xxxxxxxxxxxxx
  • Date: Sun, 8 Sep 2019 22:24:16 +0300

Thank you, will try.

---------
Guido Grassel
Mobile: +358 40 177 1779
guido@xxxxxxxxxxx

On 8 Sep 2019, at 22.19, Ondřej Jirman <deibeemoocheuguhumoh@xxxxxx> wrote:

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: