Explicitly set which implementation to use.
Use this to force a specific implementation regardless of environment. Useful for benchmarking or when you know which implementation is best for your use case.
Note: 'native' only works in Node.js.
Implementation to use: 'js' or 'native'
Promise that resolves when the implementation is ready
// Force JS fallbackawait setImplementation('js');// Force native (Node.js only)await setImplementation('native'); Copy
// Force JS fallbackawait setImplementation('js');// Force native (Node.js only)await setImplementation('native');
Explicitly set which implementation to use.
Use this to force a specific implementation regardless of environment. Useful for benchmarking or when you know which implementation is best for your use case.
Note: 'native' only works in Node.js.