We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 540b697 commit 0f33206Copy full SHA for 0f33206
graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/builtins/intl/LocalePrototypeBuiltins.java
@@ -591,8 +591,7 @@ public Object doOther(@SuppressWarnings("unused") Object bummer) {
591
@TruffleBoundary
592
private static TruffleString direction(JSLocaleObject localeObject) {
593
ULocale locale = localeObject.getInternalState().getULocale();
594
- String orientation = locale.getCharacterOrientation();
595
- return "right-to-left".equals(orientation) ? IntlUtil.KEY_RTL : IntlUtil.KEY_LTR;
+ return locale.isRightToLeft() ? IntlUtil.KEY_RTL : IntlUtil.KEY_LTR;
596
}
597
598
0 commit comments