PageRenderTime 18ms CodeModel.GetById 11ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/src/erlv8_context.erl

http://github.com/beamjs/erlv8
Erlang | 13 lines | 8 code | 5 blank | 0 comment | 0 complexity | eb21a781d302c3107895ffbb864ae955 MD5 | raw file
 1-module(erlv8_context).
 2-export([get/1,global/1,new/1]).
 3
 4get(Server) ->
 5	gen_server2:call(Server,context).
 6
 7new(Server) ->
 8	gen_server2:call(Server,new_context).
 9
10global({Server, Resource}) ->
11	gen_server2:call(Server,{global, Resource}).
12
13