public final class DefinePropertyUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.oracle.truffle.api.object.Property |
getPropertyByKey(com.oracle.truffle.api.object.DynamicObject thisObj,
Object key) |
static boolean |
isCompatiblePropertyDescriptor(boolean extensible,
PropertyDescriptor descriptor,
PropertyDescriptor current)
Implementation of OrdinaryDefineOwnProperty as defined in ECMAScript 2015, 9.1.6.1.
|
static boolean |
isCompatiblePropertyDescriptor(boolean extensible,
PropertyDescriptor descriptor,
PropertyDescriptor current,
boolean doThrow) |
static boolean |
ordinaryDefineOwnProperty(com.oracle.truffle.api.object.DynamicObject thisObj,
Object propertyKey,
PropertyDescriptor descriptor,
boolean doThrow)
Implementation of OrdinaryDefineOwnProperty as defined in ECMAScript 2015, 9.1.6.1.
|
static boolean |
reject(boolean doThrow,
String message) |
public static boolean ordinaryDefineOwnProperty(com.oracle.truffle.api.object.DynamicObject thisObj,
Object propertyKey,
PropertyDescriptor descriptor,
boolean doThrow)
public static boolean isCompatiblePropertyDescriptor(boolean extensible,
PropertyDescriptor descriptor,
PropertyDescriptor current)
public static boolean isCompatiblePropertyDescriptor(boolean extensible,
PropertyDescriptor descriptor,
PropertyDescriptor current,
boolean doThrow)
public static com.oracle.truffle.api.object.Property getPropertyByKey(com.oracle.truffle.api.object.DynamicObject thisObj,
Object key)
public static boolean reject(boolean doThrow,
String message)