bahmutov / bahmutov/comment-value

Handle promises better

Open
#29 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
27
Forks
0
PR merge metrics
No merged PRs in 30d

Description

For example
```js
const promises = [Promise.resolve(20), Promise.resolve(30)]
// promises: [{},{}]
Promise.all(promises)
.then(console.log)
```
should produce
```js
const promises = [Promise.resolve(20), Promise.resolve(30)]
// promises: [Promise(20), Promise(30)]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the code that formats or updates comment values for JavaScript promises, using the Promise.all example and its console.log callback as the reproduction. Confirm that promise values are represented as Promise(20) and Promise(30) rather than empty objects, and add or run coverage for the demonstrated output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.