Peter Cornell

Results 27 comments of Peter Cornell

IonBinary.ts also has a set of `TB_*` consts that are redundant, and should be consolidated.

Impl shouldn't check (or rely upon) `undefined`. Consider use of `undefined` to be a bug; use `null` (or a value) instead. Note that some APIs currently return `undefined`; update to...

Note that ion-java's `Decimal.toString()` may also return a string containing 'E': ```java IonReader reader = IonReaderBuilder.standard().build("123d1"); reader.next(); System.out.println(reader.decimalValue()); ``` produces: ``` 1.23E+3 ```

Sizing assumes the Reader is not re-usable after `close()`

Related to https://github.com/amzn/ion-js/issues/396

That's the way to do it today. Reader is basically an iterator, so `Reader.toString()` would seem strange to me; perhaps a helper function would make sense.

A few thoughts: * a well-named error class provides a little more information to the receiver * in cases where a method's implementation might have multiple error conditions, throwing a...

per @almann in #307: > We really should consider having some first-class error type like IonError and have it prototype extend Error. Since we're targeting ES6, this is pretty straightforward,...