public final class DefinePropertyUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.oracle.truffle.api.object.Property |
getPropertyByKey(JSDynamicObject 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 String |
nonConfigurableMessage(Object key,
boolean reject) |
static String |
nonWritableMessage(Object key,
boolean reject) |
static String |
notExtensibleMessage(Object key,
boolean reject) |
static boolean |
ordinaryDefineOwnProperty(JSDynamicObject 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) |
static boolean |
validateAndApplyPropertyDescriptor(JSDynamicObject thisObj,
Object propertyKey,
boolean extensible,
PropertyDescriptor descriptor,
PropertyDescriptor current,
boolean doThrow)
Implementation of ValidateAndApplyPropertyDescriptor as defined in ECMAScript 2015, 9.1.6.3.
|
public static boolean ordinaryDefineOwnProperty(JSDynamicObject 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 boolean validateAndApplyPropertyDescriptor(JSDynamicObject thisObj, Object propertyKey, boolean extensible, PropertyDescriptor descriptor, PropertyDescriptor current, boolean doThrow)
public static com.oracle.truffle.api.object.Property getPropertyByKey(JSDynamicObject thisObj, Object key)
public static boolean reject(boolean doThrow,
String message)