Skip to content

Missing resolveObjectURL method in node:buffer module #12322

Closed
@zAlweNy26

Description

What version of Bun is running?

1.1.17

What platform is your computer?

Linux 6.5.0-1024-oem x86_64 x86_64

What steps can reproduce the bug?

I tried this:

import { resolveObjectURL } from 'node:buffer'
// ...
const blob = resolveObjectURL('blob:xxx') // Error: Method not implemented

What is the expected behavior?

It would be nice to have that method implemented as well, because the other methods usually used in combine with it (URL.createObjectURL and URL.revokeObjectURL) are already implemented in Bun.

What do you see instead?

I get the error Method not implemented when using that method in my code, and as I can see here:

vm, globalObject, 1, "resolveObjectURL"_s, jsFunctionNotImplemented);

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions