diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/js_native_api_types.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/js_native_api_types.h b/src/js_native_api_types.h index 115ccebf261..7011c80e671 100644 --- a/src/js_native_api_types.h +++ b/src/js_native_api_types.h @@ -30,6 +30,16 @@ typedef enum { // Used with napi_define_class to distinguish static properties // from instance properties. Ignored by napi_define_properties. napi_static = 1 << 10, + +#ifdef NAPI_EXPERIMENTAL + // Default for class methods. + napi_default_method = napi_writable | napi_configurable, + + // Default for object properties, like in JS obj[prop]. + napi_default_jsproperty = napi_writable | + napi_enumerable | + napi_configurable, +#endif // NAPI_EXPERIMENTAL } napi_property_attributes; typedef enum { |