Skip to content

Hide built-in function proxying #20

Description

@JustArion

While you patch functions like console.clear it is still detectable that it's been patched via its toString() call and that a built-in function has a .prototype

You can prevent this by replacing the toString function of any Proxies with a fake

function clear() {
  [native code]
}

Then of course, deleting its prototype too.

    delete console.clear.prototype;
    delete console.clear.toString.prototype;

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions