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

fix(ext/console): fix inspecting iterators error. #20720

Merged
merged 8 commits into from
Nov 13, 2023
Merged

fix(ext/console): fix inspecting iterators error. #20720

merged 8 commits into from
Nov 13, 2023

Conversation

ghosind
Copy link
Contributor

@ghosind ghosind commented Sep 28, 2023

Fixes #19776 and #20676 .

Node implements previewEntries as C++ binding, so I moved this function to internal binding.

Verified

This commit was signed with the committer’s verified signature.
KinectTheUnknown David-Joseph Xayavong

Verified

This commit was signed with the committer’s verified signature.
KinectTheUnknown David-Joseph Xayavong

Verified

This commit was signed with the committer’s verified signature.
KinectTheUnknown David-Joseph Xayavong
@bartlomieju
Copy link
Member

Thanks for the PR @ghosind, it appears that this change caused an actual test failure in Node.js compat tests. Could you please take a look?

Verified

This commit was signed with the committer’s verified signature.
KinectTheUnknown David-Joseph Xayavong

Verified

This commit was signed with the committer’s verified signature.
KinectTheUnknown David-Joseph Xayavong
@ghosind
Copy link
Contributor Author

ghosind commented Oct 7, 2023

Hi @bartlomieju ,
Console.table calls console.log and consumes the iterator. So, console.table test cases that print iterators will be failures. However, it'll throw an error and terminate the test case before this change. I've removed this log and no test error now.

@bartlomieju
Copy link
Member

@crowlKats please review

Copy link
Member

@crowlKats crowlKats left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

Verified

This commit was signed with the committer’s verified signature.
KinectTheUnknown David-Joseph Xayavong
Signed-off-by: Leo Kettmeir <crowlkats@toaxl.com>

Verified

This commit was signed with the committer’s verified signature.
KinectTheUnknown David-Joseph Xayavong
Signed-off-by: Leo Kettmeir <crowlkats@toaxl.com>

Verified

This commit was signed with the committer’s verified signature.
KinectTheUnknown David-Joseph Xayavong
Signed-off-by: Leo Kettmeir <crowlkats@toaxl.com>
@crowlKats crowlKats merged commit 0209f7b into denoland:main Nov 13, 2023
@mmastrac
Copy link
Contributor

This PR unfortunately broke benchmarks on main:

running 1 test
thread 'main' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_core-0.229.0/runtime/jsruntime.rs:788:42:
called `Result::unwrap()` on an `Err` value: Specifier "ext:deno_node/internal_binding/util.ts" was not passed as an extension module and was not included in the snapshot.
stack backtrace:

mmastrac added a commit that referenced this pull request Nov 13, 2023

Verified

This commit was signed with the committer’s verified signature.
KinectTheUnknown David-Joseph Xayavong
This reverts commit 0209f7b.
bartlomieju added a commit to bartlomieju/deno that referenced this pull request Nov 13, 2023

Verified

This commit was signed with the committer’s verified signature.
KinectTheUnknown David-Joseph Xayavong
…0720)"

This reverts commit 0209f7b.
bartlomieju added a commit that referenced this pull request Nov 13, 2023

Verified

This commit was signed with the committer’s verified signature.
KinectTheUnknown David-Joseph Xayavong
…21191)

This reverts commit 0209f7b.

Reverting because it causes failures on `main`:
#20720 (comment)
kt3k pushed a commit that referenced this pull request Nov 17, 2023

Verified

This commit was signed with the committer’s verified signature.
KinectTheUnknown David-Joseph Xayavong
Fixes #19776 and #20676.
kt3k pushed a commit that referenced this pull request Nov 17, 2023
…21191)

This reverts commit 0209f7b.

Reverting because it causes failures on `main`:
#20720 (comment)
zifeo pushed a commit to metatypedev/deno that referenced this pull request Nov 22, 2023
zifeo pushed a commit to metatypedev/deno that referenced this pull request Nov 22, 2023
crowlKats added a commit to crowlKats/deno that referenced this pull request Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deno repl: fails to inspect MapIterator or SetIterator
4 participants