Perfect your code
With built-in code review tools, GitHub makes it easy to raise the quality bar before you ship. Join the 40 million developers who've merged over 200 million pull requests.
Sign up for free See pricing for teams and enterprisessrc: split `LoadEnvironment()` at `startExecution()` #25320
+47
−32
Conversation
addaleax
requested a review
from joyeecheung
Jan 2, 2019
This comment has been minimized.
This comment has been minimized.
nodejs-github-bot
added
C++
lib / src
labels
Jan 2, 2019
joyeecheung
approved these changes
Jan 3, 2019
|
LGTM. I wonder if as a follow up we should put the JS land startExecution into a separate file.. |
bnoordhuis
approved these changes
Jan 3, 2019
| if (start_execution.IsEmpty()) return; | ||
| start_execution->Call( | ||
| env->context(), Undefined(env->isolate()), 0, nullptr); | ||
| env->set_start_execution_function(Local<Function>()); |
This comment has been minimized.
This comment has been minimized.
bnoordhuis
Jan 3, 2019
Member
Maybe do this before the call to, er, Call() as an extra guard against recursive invocation?
This comment has been minimized.
This comment has been minimized.
addaleax
Jan 3, 2019
Author
Member
Done, but it requires some extra magic because of the way the env->...() getters work…
JungMinu
approved these changes
Jan 3, 2019
cjihrig
approved these changes
Jan 3, 2019
jasnell
approved these changes
Jan 3, 2019
fhinkel
approved these changes
Jan 5, 2019
This comment has been minimized.
This comment has been minimized.
addaleax
added
the
author ready
label
Jan 5, 2019
This comment has been minimized.
This comment has been minimized.
|
Landed in f6a1d88 |
addaleax
closed this
Jan 6, 2019
addaleax
deleted the
addaleax:embedder-api
branch
Jan 6, 2019
addaleax
added a commit
that referenced
this pull request
Jan 6, 2019
addaleax
added
the
backport-requested-v11.x
label
Jan 9, 2019
BridgeAR
added this to Backport requested
in v11.x
Jan 10, 2019
refack
added a commit
to refack/node
that referenced
this pull request
Jan 14, 2019
addaleax
removed
the
backport-requested-v11.x
label
Jan 15, 2019
addaleax
added a commit
that referenced
this pull request
Jan 15, 2019
Merged
BridgeAR
added a commit
to BridgeAR/node
that referenced
this pull request
Jan 16, 2019
BridgeAR
added a commit
to BridgeAR/node
that referenced
this pull request
Jan 17, 2019
Merged
targos
removed this from Backport requested
in v11.x
Jan 30, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
addaleax commentedJan 2, 2019
This makes it easier to cater to embedders which wish to skip
the
startExecution()part.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes