Class JSModuleNamespace
java.lang.Object
com.oracle.truffle.js.runtime.builtins.JSClass
com.oracle.truffle.js.runtime.builtins.JSNonProxy
com.oracle.truffle.js.runtime.builtins.JSModuleNamespace
Module Namespace Exotic Objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JSModuleNamespacestatic final com.oracle.truffle.api.strings.TruffleStringstatic final JSModuleNamespacestatic final com.oracle.truffle.api.strings.TruffleStringFields inherited from class JSNonProxy
GET_SYMBOL_SPECIES_NAME -
Method Summary
Modifier and TypeMethodDescriptionstatic JSModuleNamespaceObjectcreate(JSContext context, JSRealm realm, AbstractModuleRecord module, List<Map.Entry<com.oracle.truffle.api.strings.TruffleString, ExportResolution>> sortedExports, boolean deferred) booleandefineOwnProperty(JSDynamicObject thisObj, Object key, PropertyDescriptor desc, boolean doThrow) 9.1.6 [[DefineOwnProperty]] (P, Desc).booleandelete(JSDynamicObject thisObj, long index, boolean isStrict) booleandelete(JSDynamicObject thisObj, Object key, boolean isStrict) 9.1.10 [[Delete]] (P).static ObjectgetBindingValue(ExportResolution binding) getOwnHelper(JSDynamicObject store, Object thisObj, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode) Like getOwnProperty, but returnsnullif value is not present instead of undefined.getOwnProperty(JSDynamicObject thisObj, Object key) 9.1.5 [[GetOwnProperty]] (P).getOwnPropertyKeys(JSDynamicObject thisObj, boolean strings, boolean symbols) GetOwnPropertyKeys (O, type).booleanhasOwnProperty(JSDynamicObject thisObj, Object key) booleanhasProperty(JSDynamicObject thisObj, Object key) 9.1.7 [[HasProperty]] (P).static booleanstatic com.oracle.truffle.api.object.ShapemakeInitialShape(JSContext context, boolean deferred) booleanset(JSDynamicObject thisObj, long index, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) booleanset(JSDynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) 9.1.9 [[Set]] (P, V, Receiver).booleansetPrototypeOf(JSDynamicObject thisObj, JSDynamicObject newPrototype) 9.1.2 [[SetPrototypeOf]] (V).booleanMethods inherited from class JSNonProxy
checkProtoCycle, createSymbolSpeciesGetterFunction, deletePropertyDefault, getHelper, getHelper, getMethodHelper, getOwnHelper, getPrototypeOf, hasOnlyShapeProperties, hasOwnProperty, hasProperty, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ordinaryIsExtensible, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeysSlow, ordinaryPreventExtensions, ordinarySet, ordinarySetIndex, ordinarySetWithReceiver, performOrdinarySetWithOwnDescriptor, preventExtensions, putConstructorSpeciesGetter, setIntegrityLevelFast, setPropertySlow, testIntegrityLevelFast, usesOrdinaryIsExtensibleMethods inherited from class JSClass
filterOwnPropertyKeys, get, get, getIntrinsicDefaultProto, isInstance, isInstance, isInstance, isInstance, makeInitialShape, ownPropertyKeys, toString
-
Field Details
-
INSTANCE
-
DEFERRED_INSTANCE
-
TO_STRING_TAG
public static final com.oracle.truffle.api.strings.TruffleString TO_STRING_TAG -
DEFERRED_TO_STRING_TAG
public static final com.oracle.truffle.api.strings.TruffleString DEFERRED_TO_STRING_TAG
-
-
Method Details
-
create
public static JSModuleNamespaceObject create(JSContext context, JSRealm realm, AbstractModuleRecord module, List<Map.Entry<com.oracle.truffle.api.strings.TruffleString, ExportResolution>> sortedExports, boolean deferred) -
makeInitialShape
public static com.oracle.truffle.api.object.Shape makeInitialShape(JSContext context, boolean deferred) -
getOwnHelper
public Object getOwnHelper(JSDynamicObject store, Object thisObj, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode) Description copied from class:JSNonProxyLike getOwnProperty, but returnsnullif value is not present instead of undefined.- Overrides:
getOwnHelperin classJSNonProxy
-
getBindingValue
-
hasProperty
Description copied from class:JSClass9.1.7 [[HasProperty]] (P).- Overrides:
hasPropertyin classJSNonProxy
-
hasOwnProperty
- Overrides:
hasOwnPropertyin classJSNonProxy
-
delete
- Overrides:
deletein classJSNonProxy
-
delete
-
setPrototypeOf
Description copied from class:JSClass9.1.2 [[SetPrototypeOf]] (V).- Overrides:
setPrototypeOfin classJSNonProxy
-
defineOwnProperty
public boolean defineOwnProperty(JSDynamicObject thisObj, Object key, PropertyDescriptor desc, boolean doThrow) Description copied from class:JSClass9.1.6 [[DefineOwnProperty]] (P, Desc).- Overrides:
defineOwnPropertyin classJSNonProxy
-
getOwnProperty
Description copied from class:JSClass9.1.5 [[GetOwnProperty]] (P).- Overrides:
getOwnPropertyin classJSNonProxy
-
isJSModuleNamespace
-
set
public boolean set(JSDynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) Description copied from class:JSClass9.1.9 [[Set]] (P, V, Receiver).- Overrides:
setin classJSNonProxy
-
set
public boolean set(JSDynamicObject thisObj, long index, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) - Overrides:
setin classJSNonProxy
-
getOwnPropertyKeys
Description copied from class:JSClassGetOwnPropertyKeys (O, type).- Overrides:
getOwnPropertyKeysin classJSNonProxy- Returns:
- a List of the keys of all own properties of that object with the specified types
-
usesOrdinaryGetOwnProperty
public boolean usesOrdinaryGetOwnProperty()- Overrides:
usesOrdinaryGetOwnPropertyin classJSNonProxy
-