diff --git a/CHANGELOG.md b/CHANGELOG.md index f35b749..2701df4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,12 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -### [1.2.0] +## [1.2.0] - Support storing of a custom per-isolate data structure (`Napi::Env::GetInstanceData` and `Napi::Env::SetInstanceData`) - Specify the memory ownership rules for `Buffer` - Support returning references to nested objects -- Fix a minor memory leak when calling method with incorrect number of arguments +- Fix a minor memory leak when calling a method with incorrect number of arguments ### [1.1.1] 2023-12-01 diff --git a/README.md b/README.md index 360fb26..136a58a 100644 --- a/README.md +++ b/README.md @@ -477,14 +477,14 @@ Consider the following C++ code: class Time { unsigned long timestamp; public: - Time(unsigned long v); + Time(unsigned long v): timestamp(v) {}; }; class DateTime { Time time; public: - DateTime(Time v); - operator Time &(); + DateTime(Time v): time(v) {}; + Time &get() { return time; }; }; ```