Class NumberPrototypeBuiltins.JSNumberToLocaleStringIntlNode

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Enclosing class:
NumberPrototypeBuiltins

public abstract static class NumberPrototypeBuiltins.JSNumberToLocaleStringIntlNode extends JSBuiltinNode
Implementation of the Number.prototype.toLocaleString() method as specified by ECMAScript. Internationalization API, https://tc39.github.io/ecma402/#sup-number.prototype.tolocalestring
  • Constructor Details

    • JSNumberToLocaleStringIntlNode

      public JSNumberToLocaleStringIntlNode(JSContext context, JSBuiltin builtin)
  • Method Details

    • jsNumberToLocaleString

      protected com.oracle.truffle.api.strings.TruffleString jsNumberToLocaleString(JSNumberObject thisObj, Object locales, Object options)
    • javaNumberToLocaleString

      protected final com.oracle.truffle.api.strings.TruffleString javaNumberToLocaleString(Object thisNumber, Object locales, Object options, com.oracle.truffle.api.nodes.Node node, IsNumberNode isNumber, JSToDoubleNode toDouble)
    • toLocaleStringForeignObject

      protected com.oracle.truffle.api.strings.TruffleString toLocaleStringForeignObject(Object thisObj, Object locales, Object options, com.oracle.truffle.api.interop.InteropLibrary interop)
    • failForNonNumbers

      protected Object failForNonNumbers(Object notANumber, Object locales, Object options)