beamjs / erlv8

Erlang interface for V8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make all calls non-blocking, otherwise it is getting messy

yrashk opened this issue · comments

Also it will be a good time refactor each "command" into a separate class

The question is how far should I go with this, like, for example, equality tests, getting global object and so on — should they be non-blocking too?

Definitely proplist() and list() as they are affected by getters. By the way I just thought that it might be possible to duplicate every code both blocking and non-blocking with some macro goodness.

term_to_js becomes more reliant on a particular VM instance, so pretty much everything should go non-blocking soon.

to_string/to_detail_string converted