| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
Why does this need mutable?
Sorry, something went wrong.
There was a problem hiding this comment.
Because here entry is moved again out of the function, and so it needs to be modifiable – Do you think a comment would help/be necessary here?
Sorry, something went wrong.
|
Fwiw, I requested access to CI machines for debugging in nodejs/build#1875 because I really can’t figure out why this would crash, although it’s (probably?) a problem with the relatively overseeable N-API bits here. |
Sorry, something went wrong.
Sorry, something went wrong.
Modify the native `SetImmediate()` functions to take generic C++ callables as arguments. This makes passing arguments to the callback easier, and in particular, it allows passing `std::unique_ptr`s directly, which in turn makes sure that the data they point to is deleted if the `Environment` is torn down before the callback can run.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
|
CI is yellow, so I think this could use a review :) |
Sorry, something went wrong.
Modify the native `SetImmediate()` functions to take generic C++ callables as arguments. This makes passing arguments to the callback easier, and in particular, it allows passing `std::unique_ptr`s directly, which in turn makes sure that the data they point to is deleted if the `Environment` is torn down before the callback can run. PR-URL: #28704 Reviewed-By: James M Snell <jasnell@gmail.com>
Modify the native `SetImmediate()` functions to take generic C++ callables as arguments. This makes passing arguments to the callback easier, and in particular, it allows passing `std::unique_ptr`s directly, which in turn makes sure that the data they point to is deleted if the `Environment` is torn down before the callback can run. PR-URL: #28704 Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
Modify the native SetImmediate() functions to take generic C++
callables as arguments. This makes passing arguments to the callback
easier, and in particular, it allows passing std::unique_ptrs
directly, which in turn makes sure that the data they point to is
deleted if the Environment is torn down before the callback can run.
Checklist