Class JSToOperandNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.cast.JSToOperandNode
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public abstract class JSToOperandNode extends JavaScriptBaseNode
Converts a value to an 'operand', which is a preliminary step when invoking an overloaded operator. If the value is an object with overloaded operators, this ought to check that overloaded operators for that object have been enabled. Otherwise, if the value doesn't feature overloaded operators, it is coerced to a primitive using ToPrimitive.