FormData, Response, Request, and Headers have incorrect property descriptors
Open
Nobody has claimed this yet.
confirmed-bug
help wanted
- Dominant language
- JavaScript
- Stars
- 122k
- Forks
- 37.3k
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 283
Description
Version
v18.11.0
Platform
Microsoft Windows NT 10.0.19043.0 x64
Subsystem
No response
What steps will reproduce the bug?
The property descriptors should match such that this test succeeds:
for (const global of [
'Headers',
'Request',
'Response',
'FormData'
]) {
const desc = Object.getOwnPropertyDescriptor(globalThis, global)
assert.notStrictEqual(desc, undefined)
assert.deepStrictEqual(desc.value, globalThis[global])
assert.ok(desc.writable)
assert.ok(!desc.enumerable)
assert.ok(desc.configurable)
}
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
the tests from above pass
What do you see instead?
the descriptors are inconsistent with other environments
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided Object.getOwnPropertyDescriptor assertions against the affected Node.js version, then trace how the global Headers, Request, Response, and FormData properties are defined. Done means the four descriptors match the expected writable, non-enumerable, and configurable values and the assertions pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100