Skip to content

node:http upgrade: 'Object prototype may only be an Object or null' (test-http-upgrade-server) #4973

Description

@proggeramlug

Summary

test-http-upgrade-server fails with:

TypeError: Object prototype may only be an Object or null

Something on the HTTP upgrade path sets up a prototype chain with an invalid (non-object, non-null) [[Prototype]] — e.g. Object.create(x) / Object.setPrototypeOf / class-extends where x resolved to a primitive or undefined. Find which upgrade-handshake object gets a bad prototype operand.

Acceptance

test-http-upgrade-server no longer throws; the upgrade path builds valid prototype chains.


Found re-measuring #2132's corpus on main. Distinct bug split out of the behavioral tail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed defect or regressionparityCompatibility gap with Node.js, ECMAScript, or the supported ecosystem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions