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 #2648

Closed
harrysolovay opened this issue Jul 16, 2019 · 1 comment
Closed

Feature Request #2648

harrysolovay opened this issue Jul 16, 2019 · 1 comment

Comments

@harrysolovay
Copy link

Can there be some kind of escape character/word that gives access to the code being interpreted, during its own runtime? To be honest, I'm not sure what the use would be... other than being cool.

escape(node => {
  node.parent.statements[1].expression.arguments[0].text = 'Hi there.'
})
console.log('Hi.')

... would execute as if is was...

console.log('Hi there.')
@bartlomieju
Copy link
Member

Closing as stale, potentially related: #3354

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