protected override void OnAfterInitializing(IList <RuntimeObject> runtimeObject) { base.OnAfterInitializing(runtimeObject); RuntimeModule module = RuntimeRealm.IntrinsicModule; module.OverrideProperty(WellKnownObject.ArrayPrototype, "toLocaleString", DelegateRuntimeFunction.FromDelegate((Func <EcmaValue, EcmaValue, EcmaValue, EcmaValue>)BuiltInFunctionReplacement.ArrayPrototypeToLocaleString)); module.OverrideProperty(WellKnownObject.DatePrototype, "toLocaleString", DelegateRuntimeFunction.FromDelegate((Func <EcmaValue, EcmaValue, EcmaValue, EcmaValue>)BuiltInFunctionReplacement.DatePrototypeToLocaleString)); module.OverrideProperty(WellKnownObject.DatePrototype, "toLocaleDateString", DelegateRuntimeFunction.FromDelegate((Func <EcmaValue, EcmaValue, EcmaValue, EcmaValue>)BuiltInFunctionReplacement.DatePrototypeToLocaleDateString)); module.OverrideProperty(WellKnownObject.DatePrototype, "toLocaleTimeString", DelegateRuntimeFunction.FromDelegate((Func <EcmaValue, EcmaValue, EcmaValue, EcmaValue>)BuiltInFunctionReplacement.DatePrototypeToLocaleTimeString)); module.OverrideProperty(WellKnownObject.NumberPrototype, "toLocaleString", DelegateRuntimeFunction.FromDelegate((Func <EcmaValue, EcmaValue, EcmaValue, EcmaValue>)BuiltInFunctionReplacement.NumberPrototypeToLocaleString)); module.OverrideProperty(WellKnownObject.StringPrototype, "localeCompare", DelegateRuntimeFunction.FromDelegate((Func <EcmaValue, EcmaValue, EcmaValue, EcmaValue, EcmaValue>)BuiltInFunctionReplacement.StringPrototypeLocaleCompare)); module.OverrideProperty(WellKnownObject.StringPrototype, "toLocaleLowerCase", DelegateRuntimeFunction.FromDelegate((Func <EcmaValue, EcmaValue, EcmaValue>)BuiltInFunctionReplacement.StringPrototypeToLocaleLowerCase)); module.OverrideProperty(WellKnownObject.StringPrototype, "toLocaleUpperCase", DelegateRuntimeFunction.FromDelegate((Func <EcmaValue, EcmaValue, EcmaValue>)BuiltInFunctionReplacement.StringPrototypeToLocaleUpperCase)); }