Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make it compatible with node's --disable-proto=throw (#78)
* fix: make it compatible with node's --disable-proto Many people use the option `--disable-proto` in NodeJS to minimise the probability of prototype pollution attacks. Because of that, `__proto__` might not be available. * refactor: move conditional outside hotpath * refactor: avoid _ prefix for getPrototypeOf * fix: add missing parenthesis Signed-off-by: Andres Correa Casablanca <castarco@coderspirit.xyz> --------- Signed-off-by: Andres Correa Casablanca <castarco@coderspirit.xyz>
- Loading branch information