Skip to content

Creating new assets is difficult #30

@cwillisf

Description

@cwillisf

Expected Behavior

There should be a straightforward way to create a new empty Asset object, or to create a new Asset with externally-defined contents, without relying on an environment-specific data type.

Actual Behavior

Doing so currently requires creating a Buffer, which is a Node.js-only type. This means there's no good way to create or fill an Asset in environment-neutral code.

Steps to Reproduce

See scratchfoundation/scratch-vm#915

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions