Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process: refactor execution #40664

Merged
merged 1 commit into from Nov 6, 2021

Conversation

@VoltrexMaster
Copy link
Member

@VoltrexMaster VoltrexMaster commented Oct 30, 2021

• Removed unreachable code of the evalModule() function as an early error is thrown when the print parameter is a truthy value.
• Make use of the nullish coalescing operator.

@nodejs-github-bot

This comment has been hidden.

lib/internal/process/execution.js Outdated Show resolved Hide resolved
lib/internal/process/execution.js Outdated Show resolved Hide resolved
@VoltrexMaster VoltrexMaster force-pushed the refactor-process-execution branch 2 times, most recently from 38f859f to ccbb9a7 Oct 30, 2021
@aduh95
Copy link
Contributor

@aduh95 aduh95 commented Oct 30, 2021

For reference, throwing when trying to print the result of an ES module was added in #30370 (comment).

aduh95
aduh95 approved these changes Oct 30, 2021
@nodejs-github-bot

This comment has been hidden.

@nodejs-github-bot

This comment has been hidden.

lpinca
lpinca approved these changes Oct 31, 2021
@nodejs-github-bot

This comment has been hidden.

@nodejs-github-bot

This comment has been hidden.

@nodejs-github-bot

This comment has been hidden.

• Removed unreachable code of the `evalModule()` function as an early
error is thrown when the `print` parameter is a truthy value.
• Make use of the nullish coalescing operator.
@VoltrexMaster VoltrexMaster force-pushed the refactor-process-execution branch from ccbb9a7 to ab93dab Nov 3, 2021
@nodejs-github-bot

This comment has been hidden.

@nodejs-github-bot

This comment has been hidden.

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Nov 4, 2021

@github-actions
Copy link

@github-actions github-actions bot commented Nov 6, 2021

Commit Queue failed
- Loading data for nodejs/node/pull/40664
✔  Done loading data for nodejs/node/pull/40664
----------------------------------- PR info ------------------------------------
Title      process: refactor execution (#40664)
Author     Voltrex  (@VoltrexMaster)
Branch     VoltrexMaster:refactor-process-execution -> nodejs:master
Labels     process, author ready
Commits    1
 - process: refactor execution
Committers 1
 - voltrexmaster 
PR-URL: https://github.com/nodejs/node/pull/40664
Reviewed-By: Antoine du Hamel 
Reviewed-By: Luigi Pinca 
Reviewed-By: Minwoo Jung 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/40664
Reviewed-By: Antoine du Hamel 
Reviewed-By: Luigi Pinca 
Reviewed-By: Minwoo Jung 
--------------------------------------------------------------------------------
   ⚠  Commits were pushed since the last review:
   ⚠  - process: refactor execution
   ℹ  This PR was created on Sat, 30 Oct 2021 09:46:57 GMT
   ✔  Approvals: 3
   ✔  - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/40664#pullrequestreview-793574274
   ✔  - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/40664#pullrequestreview-793760306
   ✔  - Minwoo Jung (@JungMinu): https://github.com/nodejs/node/pull/40664#pullrequestreview-794778135
   ✔  Last GitHub Actions successful
   ℹ  Last Full PR CI on 2021-11-04T19:22:57Z: https://ci.nodejs.org/job/node-test-pull-request/40709/
- Querying data for job/node-test-pull-request/40709/
✔  Build data downloaded
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/1429175442

aduh95
aduh95 approved these changes Nov 6, 2021
@aduh95 aduh95 merged commit 549a4c9 into nodejs:master Nov 6, 2021
53 checks passed
@aduh95
Copy link
Contributor

@aduh95 aduh95 commented Nov 6, 2021

Landed in 549a4c9

@VoltrexMaster VoltrexMaster deleted the refactor-process-execution branch Nov 6, 2021
targos added a commit that referenced this issue Nov 8, 2021
• Removed unreachable code of the `evalModule()` function as an early
error is thrown when the `print` parameter is a truthy value.
• Make use of the nullish coalescing operator.

PR-URL: #40664
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
@targos targos mentioned this pull request Nov 8, 2021
BethGriggs added a commit that referenced this issue Nov 25, 2021
• Removed unreachable code of the `evalModule()` function as an early
error is thrown when the `print` parameter is a truthy value.
• Make use of the nullish coalescing operator.

PR-URL: #40664
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
@BethGriggs BethGriggs mentioned this pull request Nov 26, 2021
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants