Skip to content

Commit 0f33206

Browse files
committed
Correction of Intl.Locale.prototype.getTextInfo().
1 parent 540b697 commit 0f33206

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/builtins/intl/LocalePrototypeBuiltins.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,7 @@ public Object doOther(@SuppressWarnings("unused") Object bummer) {
591591
@TruffleBoundary
592592
private static TruffleString direction(JSLocaleObject localeObject) {
593593
ULocale locale = localeObject.getInternalState().getULocale();
594-
String orientation = locale.getCharacterOrientation();
595-
return "right-to-left".equals(orientation) ? IntlUtil.KEY_RTL : IntlUtil.KEY_LTR;
594+
return locale.isRightToLeft() ? IntlUtil.KEY_RTL : IntlUtil.KEY_LTR;
596595
}
597596

598597
}

0 commit comments

Comments
 (0)