Skip to content

migrate to @endo/errors package #5672

@dckc

Description

@dckc

What is the Problem Being Solved?

assert is a global in SES. However, IDEs don't know about it or its members. To allow automatic imports we have @agoric/assert, but it's useful outside of Agoric.

Description of the Design

Move most of @agoric/assert to use @endo/errors. Move NonNullish checked cast to @agoric/internal.

Acceptance

No more use of global assert in agoric-sdk. This will support getting assertion functions without having set up a SES environment.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions