lib/johnson/spidermonkey/runtime.rb in jbarnette-johnson-1.0.0.200806240111 vs lib/johnson/spidermonkey/runtime.rb in jbarnette-johnson-1.0.0.200807291507
- old
+ new
@@ -15,11 +15,11 @@
def add_gcthing(thing)
@gcthings[thing.object_id] = thing
end
# called from js_land_proxy.c:finalize
- def remove_gcthing(thing)
- @gcthings.delete(thing.object_id)
+ def remove_gcthing(object_id)
+ @gcthings.delete(object_id) if defined? @gcthings
end
def current_context
contexts = (Thread.current[CONTEXT_MAP_KEY] ||= {})