Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
DanWaterworth
12y ago
0 comments
Share
> You're right that a closure only needs to contain the variables that are closed over.
You would think so, but this assumption fails in the presence of eval.
undefined | Better HN
0 comments
default
newest
oldest
bmm6o
12y ago
Sure, but that's the only exception, right? If there's no eval call in the function that requires the closure it's easily determined what variables don't need to be included, right?
j
/
k
navigate · click thread line to collapse