mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
Fix typo in process.config.variables.v8_enable_i18n_support
Changed `v8_enable_i8n_support` to `v8_enable_i18n_support` to match Node.js behavior. Added test to verify the property is set correctly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2151,7 +2151,7 @@ static JSValue constructProcessConfigObject(VM& vm, JSObject* processObject)
|
||||
// }
|
||||
JSC::JSObject* config = JSC::constructEmptyObject(globalObject, globalObject->objectPrototype(), 2);
|
||||
JSC::JSObject* variables = JSC::constructEmptyObject(globalObject, globalObject->objectPrototype(), 2);
|
||||
variables->putDirect(vm, JSC::Identifier::fromString(vm, "v8_enable_i8n_support"_s), JSC::jsNumber(1), 0);
|
||||
variables->putDirect(vm, JSC::Identifier::fromString(vm, "v8_enable_i18n_support"_s), JSC::jsNumber(1), 0);
|
||||
variables->putDirect(vm, JSC::Identifier::fromString(vm, "enable_lto"_s), JSC::jsBoolean(false), 0);
|
||||
variables->putDirect(vm, JSC::Identifier::fromString(vm, "node_module_version"_s), JSC::jsNumber(REPORTED_NODEJS_ABI_VERSION), 0);
|
||||
variables->putDirect(vm, JSC::Identifier::fromString(vm, "napi_build_version"_s), JSC::jsNumber(Napi::DEFAULT_NAPI_VERSION), 0);
|
||||
|
||||
@@ -318,6 +318,7 @@ it("process.config", () => {
|
||||
expect(process.config.variables.clang).toBeNumber();
|
||||
expect(process.config.variables.host_arch).toBeDefined();
|
||||
expect(process.config.variables.target_arch).toBeDefined();
|
||||
expect(process.config.variables.v8_enable_i18n_support).toBe(1);
|
||||
});
|
||||
|
||||
it("process.execArgv", () => {
|
||||
|
||||
Reference in New Issue
Block a user