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:
Claude Bot
2025-10-31 01:04:57 +00:00
parent a5f8b0e8dd
commit 6f510841da
2 changed files with 2 additions and 1 deletions

View File

@@ -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);

View File

@@ -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", () => {