Skip to content

Eliminate constant proxy function eval #5

@caspervonb

Description

@caspervonb

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions