module Opal::Nodes::Closure::NodeSupport

def in_closure(type = JS_FUNCTION)

def in_closure(type = JS_FUNCTION)
  closure = push_closure(type)
  out = yield closure
  pop_closure
  out
end