neon-bindings / rfcs

RFCs for changes to Neon
Apache License 2.0
14 stars 9 forks source link

RFC: error subtyping #23

Closed dherman closed 6 years ago

dherman commented 6 years ago

From the RFC summary:

This RFC proposes a backwards-incompatible change to the construction of JsError values. It makes the following changes:

  • Replaces the ErrorKind enum with simple methods for constructing various error types, to make it possible to add new error types compatibly in the future.
  • Reduces the set of error types to Error, RangeError, and TypeError, since these are currently the only error types supported by N-API.

Rendered

dherman commented 6 years ago

📢 This was a bit of a last-minute addition to #22, but I'm going to put it in final comment period as well. We haven't seen much discussion and I'd like to get the 0.2 release out soon. 📢