tc39 / proposal-explicit-resource-management

ECMAScript Explicit Resource Management
https://arai-a.github.io/ecma262-compare/?pr=3000
BSD 3-Clause "New" or "Revised" License
725 stars 28 forks source link

SuppressedError.sizeLimit #190

Closed loynoir closed 12 months ago

loynoir commented 12 months ago

Thre is Error.stackTraceLimit

What happen when situation

Is there a SuppressedError.sizeLimit?

ljharb commented 12 months ago

Error.stackTraceLimit is not part of the standard.

Duplicate of #188.

loynoir commented 12 months ago

@ljharb

Sorry for duplicate.

Opened #118, and github prompted a failure.

Two problems.

  1. Error.stackTraceLimit now I know it's not part of the standard.

  2. I think maybe it's safer to have something like SuppressedError.totalErrorNumbersLimit, prevent somehow run within a loop within nested dependency.

ljharb commented 12 months ago

There's no such concept in the spec, so it wouldn't make sense for this proposal to have it either.

File an issue on the only implementation that has that property - v8, i believe - and they'll decide if they need to address it.

loynoir commented 12 months ago

@ljharb

There's no such concept in the spec, so it wouldn't make sense for this proposal to have it either.

As far as I know, there wasn't something like multiple errors.

But now there is SuppressedError at stage 3.

A SuppressedError.totalErrorNumbersLimit seems safer.

Still have a concern, just close as not an very usual case.