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

lib: the REPL should survive deletion of Array.prototype methods #31457

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

ljharb
Copy link
Member

@ljharb ljharb commented Jan 22, 2020

Specifically, delete Array.prototype.lastIndexOf immediately crashes the REPL, as does deletion of a few other Array prototype methods.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Specifically, `delete Array.prototype.lastIndexOf` immediately crashes
the REPL, as does deletion of a few other Array prototype methods.
@ljharb ljharb added domain Issues and PRs related to the domain subsystem. lib / src Issues and PRs related to general changes in the lib or src directory. labels Jan 22, 2020
@ljharb ljharb requested review from bmeck and BridgeAR January 22, 2020 08:48
@nodejs-github-bot nodejs-github-bot added the readline Issues and PRs related to the built-in readline module. label Jan 22, 2020
ljharb added a commit to es-shims/Array.prototype.lastIndexOf that referenced this pull request Jan 22, 2020
Copy link
Member

@addaleax addaleax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this needs a rebase?

@ljharb

This comment has been minimized.

@ljharb
Copy link
Member Author

ljharb commented Jan 22, 2020

Rebased, and added a bunch of other primordials I found when poking around the repl.

lib/repl.js Outdated Show resolved Hide resolved
@ljharb ljharb force-pushed the robustness branch 3 times, most recently from 44f2d96 to 418352d Compare January 22, 2020 19:57
@ljharb
Copy link
Member Author

ljharb commented Jan 22, 2020

Not sure why the python tests are failing :-/

@richardlau
Copy link
Member

Not sure why the python tests are failing :-/

For the same reason Travis is failing; there are several failing repl tests.

@nodejs-github-bot

This comment has been minimized.

@ljharb ljharb force-pushed the robustness branch 2 times, most recently from c1219b5 to 907de90 Compare January 23, 2020 05:47
@ljharb
Copy link
Member Author

ljharb commented Jan 23, 2020

alright, got tests passing :-D this is ready for any additional/final/repeat reviews, and is ready to land whenever it's allowed to!

lib/domain.js Outdated Show resolved Hide resolved
@Trott

This comment has been minimized.

Trott
Trott approved these changes Jan 23, 2020
@Trott
Copy link
Member

Trott commented Jan 23, 2020

I took the liberty of adding a test. Hope that's OK. (It's in a separate commit so it is easy to rebase out.)

@nodejs-github-bot
Copy link
Collaborator

@jasnell
Copy link
Member

jasnell commented Jan 25, 2021

I'd just give it a couple more days, then if there's no response the objection can likely be cleared

lib/repl.js Outdated Show resolved Hide resolved
@RedYetiDev
Copy link
Member

Hi! It's been a few years since any activity on this PR.

If you're still interested in pursuing this, I suggest verifying that everything is still in working order after the long delay. Otherwise, you can always close the PR.

Nonetheless, your contribution is greatly appreciated!

This is an attempt to resolve older PRs and issues

@nodejs/repl

@ljharb
Copy link
Member Author

ljharb commented Sep 6, 2024

It's been rebased, I assume after 3 years the objection can be promptly cleared, and this can be landed?

Copy link

codecov bot commented Sep 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.06%. Comparing base (1d2603b) to head (92994be).
Report is 67 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #31457      +/-   ##
==========================================
- Coverage   88.06%   88.06%   -0.01%     
==========================================
  Files         651      651              
  Lines      183386   183387       +1     
  Branches    35800    35805       +5     
==========================================
- Hits       161504   161495       -9     
- Misses      15159    15160       +1     
- Partials     6723     6732       +9     
Files with missing lines Coverage Δ
lib/domain.js 98.38% <100.00%> (+<0.01%) ⬆️
lib/repl.js 94.86% <100.00%> (ø)

... and 25 files with indirect coverage changes

@aduh95
Copy link
Contributor

aduh95 commented Sep 7, 2024

It's been 1321 days since #31457 (comment), which is more than 7 days. @BridgeAR I'm dismissing your request for changes as I believe it's been addressed, but do not hesitate to re-review.

If the objection is not clear to others, another collaborator can ask an
objecting collaborator to explain their objection or to provide actionable
steps to resolve the objection. If the objector is unresponsive for seven
days after a collaborator asks for clarification, a collaborator may
dismiss the objection.

@aduh95 aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. and removed domain Issues and PRs related to the domain subsystem. labels Sep 7, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 7, 2024
@nodejs-github-bot
Copy link
Collaborator

@jasnell
Copy link
Member

jasnell commented Sep 8, 2024

PR is currently blocked from landing due to unreliable CI

@nodejs-github-bot
Copy link
Collaborator

@aduh95 aduh95 added the request-ci Add this label to start a Jenkins CI on a PR. label Sep 11, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 11, 2024
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@aduh95 aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 17, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 17, 2024
@nodejs-github-bot nodejs-github-bot merged commit 7014e50 into nodejs:main Sep 17, 2024
56 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 7014e50

@ljharb ljharb deleted the robustness branch September 17, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. lib / src Issues and PRs related to general changes in the lib or src directory. repl Issues and PRs related to the REPL subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.