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

Eliminate constant proxy function eval #5

Open
caspervonb opened this issue Nov 5, 2016 · 0 comments
Open

Eliminate constant proxy function eval #5

caspervonb opened this issue Nov 5, 2016 · 0 comments
Milestone

Comments

@caspervonb
Copy link
Contributor

caspervonb commented Nov 5, 2016

A proxy function currently looks something like the following:

function fn() {
  if (__function[0].length > 0) {
    __function[0] = eval(__function[0]);
  }

  return __function[0].apply(this, arguments);
}

The eval statement here will prevent V8 from doing optimisation on the function.

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

Successfully merging a pull request may close this issue.

1 participant