Skip to content

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

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
ljharb:robustness
Sep 17, 2024
Merged

lib: the REPL should survive deletion of Array.prototype methods#31457
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
ljharb:robustness

Conversation

@ljharb

@ljharbljharb commented Jan 22, 2020

Copy link
Copy Markdown
Member

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.
@ljharbljharb 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 BridgeAR and bmeckJanuary 22, 2020 08:48
@nodejs-github-botnodejs-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

@addaleaxaddaleax left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
MemberAuthor

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

Comment threadlib/repl.js Outdated
@ljharb
ljharbforce-pushed the robustness branch 3 times, most recently from 44f2d96 to 418352dCompareJanuary 22, 2020 19:57
@ljharb

Copy link
Copy Markdown
MemberAuthor

Not sure why the python tests are failing :-/

@richardlau

Copy link
Copy Markdown
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
ljharbforce-pushed the robustness branch 2 times, most recently from c1219b5 to 907de90CompareJanuary 23, 2020 05:47
@ljharb

Copy link
Copy Markdown
MemberAuthor

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

Comment threadlib/domain.js Outdated
@Trott

This comment has been minimized.

Trott
Trott approved these changes Jan 23, 2020
@Trott

Copy link
Copy Markdown
Member

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
Copy Markdown
Collaborator

Comment threadlib/domain.js Outdated
@ljharb
ljharbforce-pushed the robustness branch 2 times, most recently from f523136 to 12756b9CompareDecember 28, 2020 15:53

@aduh95aduh95 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@targostargos added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 28, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 28, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@PoojaDurgadPoojaDurgad added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 21, 2021
Comment threadlib/repl.js Outdated
@jasnelljasnell removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 25, 2021
@jasnell

Copy link
Copy Markdown
Member

Removed the "Author Ready" given @BridgeAR's request changes on this.

@ljharb

Copy link
Copy Markdown
MemberAuthor

@jasnell how long do i need to wait for a response? it’s been a month and @BridgeAR hasn't reconfirmed that the X should stand.

@jasnell

Copy link
Copy Markdown
Member

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

Comment threadlib/repl.js Outdated
@avivkeller

Copy link
Copy Markdown
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

@avivkelleravivkeller mentioned this pull request Jun 24, 2024
3 tasks
@ljharb

Copy link
Copy Markdown
MemberAuthor

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

@codecov

codecovBot commented Sep 6, 2024

Copy link
Copy Markdown

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 linesCoverage Δ
lib/domain.js98.38% <100.00%> (+<0.01%)⬆️
lib/repl.js94.86% <100.00%> (ø)

... and 25 files with indirect coverage changes

@aduh95

Copy link
Copy Markdown
Contributor

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.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@jasnell

Copy link
Copy Markdown
Member

PR is currently blocked from landing due to unreliable CI

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 7014e50

@aduh95aduh95 mentioned this pull request Oct 9, 2024
@marco-ippolitomarco-ippolito mentioned this pull request Nov 16, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.lib / srcIssues and PRs related to general changes in the lib or src directory.replIssues and PRs related to the REPL subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

15 participants

@ljharb@richardlau@nodejs-github-bot@Trott@addaleax@devsnek@targos@jasnell@avivkeller@aduh95@bmeck@cjihrig@BridgeAR@lundibundi@PoojaDurgad