Package com.oracle.truffle.js.nodes.cast
package com.oracle.truffle.js.nodes.cast
-
ClassDescriptionThis implements 9.8.1 ToString Applied to the Number Type.Abstract operation NumberToBigInt(number).Convert result of
ToNumberto a double value.Lossy Numeric to Number value conversion.Implementation of the implicitthisargument conversion upon entering non-strict functions (OrdinaryCallBindThis).Converts an arbitrary iterable object to a string list.This implements ToNumber applied to the String type.Implementation of the abstract operation ToBigInt(argument).Implementation of the ToBigInt conversion performed by the BigInt(argument) where the argument has already been converted ToPrimitive, i.e.: If prim is a Number, return NumberToBigInt(prim), otherwise ToBigInt(prim).Implementation of the abstract operation ToBigInt(argument) where the argument has already been converted ToPrimitive.Implements the abstract operation ToNumber but always converting the result to a double value.Implementation of the abstract operation ToIndex(value) (ES7 7.1.17).This node implements the behavior of ToInt32.Basically ECMAScript ToInteger, but correct only for values in the int32 range.Basically ECMAScript ToInteger, but correct only for values in the safe integer range.This implements ECMA2022 7.1.5 ToIntegerOrInfinity.This implements ToIntegerWithoutRounding (via Temporal proposal).This implements ToIntegerWithTruncation (via Temporal proposal).Implementation of ToLength (ES6 7.1.15).This implements the abstract operation ToNumber.Returns true if the value is already a numeric value that should not be converted ToNumber.Converts an arbitrary array-like object to an Object[], with an optional array length limit.Implementation of the ECMAScript abstract operation ToObject(argument).Converts a value to an 'operand', which is a preliminary step when invoking an overloaded operator.Implements ToPrimitive (input, hint).This implements the abstract operation ToPropertyKey(argument).Implements a cast from a value to a RegExp Object, as defined by String.prototype.match and String.prototype.search.This implements ECMA 9.8.Converts a primitive value returned byJSToPrimitiveNodeto either a string or a numeric value.Implementation of ToUInt16.Converts long values to BigInt for comparison purposes.Implements OrdinaryToPrimitive (O, hint).Converts value to array index orJSRuntime.INVALID_ARRAY_INDEX.Checks if the provided value is a valid length argument for the Array(len) constructor and converts it to a uint32 value.Modified version ofJSToObjectNodethat throws if the legacywithstatement is used with a host object.