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

n-api: cache Symbol.hasInstance #12246

Closed

Commits on Apr 5, 2017

  1. n-api: cache Symbol.hasInstance

    This improves the performance of napi_instanceof() by retrieving
    Symbol.hasInstance from the global object once and then storing a
    persistent reference to it in the env.
    
    Re nodejs/abi-stable-node#209
    Re nodejs/abi-stable-node#214
    Gabriel Schulhof committed Apr 5, 2017
    Configuration menu
    Copy the full SHA
    dbef608 View commit details
    Browse the repository at this point in the history