summaryrefslogtreecommitdiffhomepage
path: root/ast.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-12 00:12:09 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-12 00:12:39 +0200
commit0329d7d1708f37396d63eb1801b671f16999390f (patch)
treeb6bf314c4f93d944b160962b673dadddbbc3b818 /ast.h
parent79579e819c289ef1b41b6ba0a643c2fc4d1858cf (diff)
eval: keep references to function contexts
Otherwise the "this" context might be gc'ed before the function can access it. This bug manifested itself with long chained expressions such as: require("fs").open("file.txt").read(10) The file handle produced by open() was gc'ed before invoking read() on it due to the evaluation not increasing its refcount. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'ast.h')
0 files changed, 0 insertions, 0 deletions