| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
We don’t add using statements to headers (we should probably have a linter rule against that, at least for the v8 symbols…)
Sorry, something went wrong.
There was a problem hiding this comment.
@addaleax, grep "using v8::" src/*.h
I am seeing this pattern in few files already. If I remove using phrase, is there any way I can elevate ?
Sorry, something went wrong.
There was a problem hiding this comment.
Yes, these other files should also not use it.
There are no shorthands in that case, we do spell out the entire type in headers.
Sorry, something went wrong.
There was a problem hiding this comment.
@addaleax,thanks. Reverted the changes. What is the rationale for this ?
Sorry, something went wrong.
There was a problem hiding this comment.
I mean, why we want to skip for headers ? Is there any performance reason or something else ?
Sorry, something went wrong.
There was a problem hiding this comment.
@HarshithaKP Because then the symbols are available in any source file that includes this header, even if that’s not obvious. For example, this code would fail to compile if example.h has a using v8::Array; line:
#include "example.h"
class Array {};
Sorry, something went wrong.
Align with the MaybeLocal<> API contract
Sorry, something went wrong.
Align with the MaybeLocal<> API contract PR-URL: #31946 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Align with the MaybeLocal<> API contract PR-URL: #31946 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Align with the MaybeLocal<> API contract PR-URL: #31946 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Align with the MaybeLocal<> API contract PR-URL: #31946 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Align with the MaybeLocal<> API contract PR-URL: #31946 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Align with the MaybeLocal<> API contract PR-URL: #31946 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
src: handle bad callback in asyc_wrap
Align with the MaybeLocal<> API contract
Refs:
node/deps/v8/include/v8.h
Lines 345 to 349 in 9403250
addresses an @addaleax 's TODO
src: elevate v8 namespaces
Checklist