mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 06:12:08 +00:00
Enable --useExplicitResourceManagement by default (#23155)
### What does this PR do? This PR enables `--useExplicitResourceManagement` JSC option by default, to expose following builtins: - `DisposableStack` - `AsyncDisposableStack` - `Iterator@@dispose` - `AsyncIterator@@asyncDispose` ### How did you verify your code works? These features are fully tested on JSC side.
This commit is contained in:
@@ -302,6 +302,7 @@ extern "C" void JSCInitialize(const char* envp[], size_t envc, void (*onCrash)(c
|
||||
JSC::Options::heapGrowthSteepnessFactor() = 1.0;
|
||||
JSC::Options::heapGrowthMaxIncrease() = 2.0;
|
||||
JSC::Options::useAsyncStackTrace() = true;
|
||||
JSC::Options::useExplicitResourceManagement() = true;
|
||||
JSC::dangerouslyOverrideJSCBytecodeCacheVersion(getWebKitBytecodeCacheVersion());
|
||||
|
||||
#ifdef BUN_DEBUG
|
||||
|
||||
Reference in New Issue
Block a user