| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
I'd assume this whole mechanism is necessary if the locale is changed in runtime. @nodejs/intl is there a way to do that? |
Sorry, something went wrong.
There was a problem hiding this comment.
nit: Can you switch to for(var key of expected_keys) { } instead?
Sorry, something went wrong.
Good point. But I am wondering if the locale changed at runtime, icu.getVersion(name); would still return the locales present when node instance was bootstrapped. |
Sorry, something went wrong.
|
Yes, The locale can be changed, but the ICU version not. |
Sorry, something went wrong.
Call Object.defineProperty() twice to set readonly property is unnecessary.
|
I guess this can land as is? |
Sorry, something went wrong.
|
With fresh CI, yes I believe it can. |
Sorry, something went wrong.
Sorry, something went wrong.
Call Object.defineProperty() twice to set readonly property is unnecessary. PR-URL: #13221 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
There was a problem hiding this comment.
👍 makes it look too easy
Sorry, something went wrong.
|
@refack no, i don't think there's a mechanism to change the default locale at runtime exposed to node. |
Sorry, something went wrong.
Call Object.defineProperty() twice to set readonly property is unnecessary. PR-URL: nodejs/node#13221 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Call Object.defineProperty() twice to set readonly property is unnecessary. PR-URL: #13221 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Call Object.defineProperty() twice to set readonly property is unnecessary. PR-URL: #13221 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
|
Should this be backported to v6.x-staging? If yes please follow the guide and raise a backport PR, if no let me know or add the dont-land-on label. |
Sorry, something went wrong.
|
@MylesBorins It seems the pre-condition #9266 hasn't be backported into v6.x-staging. |
Sorry, something went wrong.
|
Left a note on #9266, marking this as don't land for now so we don't keep triaging it for 6.x. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Call Object.defineProperty() twice to set readonly property is
unnecessary.
Checklist
Affected core subsystem(s)
lib/internal/bootstrap_node