Skip to content

Symbol.toStringTag is missing in buffer.Blob #37337

@jimmywarting

Description

@jimmywarting
  • Version: v15.8.0
  • Platform: Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64 x86_64
  • Subsystem:

Thought I would try it out and help you find some quirks before making Blob more stable.
Symbol.toStringTag is missing, That is what we use to check wether or not the input is a Blob or not.

What steps will reproduce the bug?

import { Blob } from 'buffer'

new Blob()[Symbol.toStringTag]

How often does it reproduce?

Happens everytime

What is the expected behavior?

To get a string that equals to "Blob"

What do you see instead?

undefined

This should not happen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions