| 877 | /// array[1] = elementValue; |
| 878 | template <typename Key> |
| 879 | class PropertyLValue { |
| 880 | public: |
| 881 | /// Converts an L-value to a value. |
| 882 | operator Value() const; |
| 883 | |
| 884 | /// Assigns a value to the property. The type of value can be |
| 885 | /// anything supported by `Object::Set`. |
| 886 | template <typename ValueType> |
| 887 | PropertyLValue& operator=(ValueType value); |
| 888 | |
| 889 | /// Converts an L-value to a value. For convenience. |
| 890 | Value AsValue() const; |
| 891 | |
| 892 | private: |
| 893 | PropertyLValue() = delete; |
| 894 | PropertyLValue(Object object, Key key); |
| 895 | napi_env _env; |
| 896 | napi_value _object; |
| 897 | Key _key; |
| 898 | |
| 899 | friend class Napi::Object; |
| 900 | }; |
| 901 | |
| 902 | /// Creates a new Object value. |
| 903 | static Object New(napi_env env ///< Node-API environment |
nothing calls this directly
no outgoing calls
no test coverage detected