Skip to content

Add Symbol.asyncDispose bound function bug (TypeError: Symbol(Symbol.asyncDispose) is not a function) #1994

@sapphi-red

Description

@sapphi-red

The following code errors with TypeError: Symbol(Symbol.asyncDispose) is not a function on v8 13.6.233.10-node.28 (Node 24.10.0), but passes with v8 14.1.146.11 (Chrome 141.0.7390.70). I guess there was a bug between these versions. I haven't found a bug report in chromium's issue tracker though.

{
	async function close() {
		console.log('called')
	}
	await using n = {
		[Symbol.asyncDispose]: close.bind(null)
	};
}

I'm not sure if it's better to add this case in the table, but thought to report this anyways.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions