Class GlobalBuiltins.JSGlobalReadLineNode

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

public abstract static class GlobalBuiltins.JSGlobalReadLineNode extends JSBuiltinNode
Non-standard readline() for V8 compatibility, and readLine(prompt) for Nashorn compatibility (only available in nashorn-compat mode with scripting enabled). The prompt argument is only accepted and printed by Nashorn's variant.
  • Constructor Details

    • JSGlobalReadLineNode

      public JSGlobalReadLineNode(JSContext context, JSBuiltin builtin, boolean returnNullWhenEmpty)
  • Method Details

    • readLine

      protected Object readLine(Object prompt)
    • toString1

      protected final com.oracle.truffle.api.strings.TruffleString toString1(Object target)