Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: mark dynamic scopes a reference passes through #57

Open
bakkot opened this issue Jun 1, 2018 · 2 comments
Open

Feature request: mark dynamic scopes a reference passes through #57

bakkot opened this issue Jun 1, 2018 · 2 comments

Comments

@bakkot
Copy link
Member

bakkot commented Jun 1, 2018

For example:

let x;
function f() {
  {
    let x;
    x; // 1
    with (o) {
      x; // 2
    }
  }
  eval(s);
  x; // 3
}

would mark 1 as passing through no dynamic scopes, would mark 2 as passing through the with, and would mark 3 as passing through the function.

@michaelficarra
Copy link
Member

Can't this already be derived?

@bakkot
Copy link
Member Author

bakkot commented Jun 1, 2018

Not trivially, especially when the dynamism comes from a sloppy direct eval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants