17 Commits

Author SHA1 Message Date
Mark S. Miller
e2f33a04ed
fix: update minimal.js to evade override mistake (#1742)
* Update minimal.js

See https://github.com/Agoric/agoric-sdk/blob/master/patches/%40confio%2Bics23%2B%2Bprotobufjs%2B6.11.3.patch

The original code used assignment to override the `constructor` and `toString` properties inherited from Error.prototype. However, if `Error.prototype` is frozen, as it is under Hardened JS (aka SES) or under the Node frozen intrinsics flag, then this assignment fails due to the JavaScript "override mistake".

`enumerable: true` would accurately preserve the behavior of the original assignment, but I'm guessing that was not intentional. For an actual error subclass, this property would not be enumerable, so my PR currently proposes that. But either would work, so let me know if you'd like me to change it.

`configurable: false` would accurately preserve the behavior of the original, but I'm guessing that was not intentional. For an actual error subclass, this property would be configurable. But either would work, so let me know if you'd like me to change it.

* chore: use ecmaVersion=6 for eslint

Co-authored-by: Alexander Fenster <fenster@google.com>
2022-07-07 10:47:55 -07:00
Jeffory Orrok
af1b449602
fix: allow for an optional semicolon where there is an optional comma in parseOptionValue (#1571)
* allow for an optional semicolon where there is an optional comma in parseOptionValue

* set allowShortCircuit to true to prevent no-unused-expressions error

* add test for semicolon

Co-authored-by: Alexander Fenster <fenster@google.com>
2021-04-29 00:49:40 -07:00
Daniel Wirtz
42f49b43f6
feat: update dependencies / general cleanup (#1356)
Co-authored-by: Alexander Fenster <fenster@google.com>
2020-04-17 15:53:50 +02:00
dcodeIO
1a522f793b Other: Update dependencies 2018-05-16 13:01:51 +02:00
dcodeIO
b8a5b126fa Other: Regenerated dist files and fixed linting issues 2017-11-24 18:50:18 +01:00
dcodeIO
3f8b74ba67 Other: codegen 2 performance pass, #653 might benefit 2017-04-24 00:26:28 +02:00
dcodeIO
fb3f9c7043 CLI: Additional tsd-jsdoc handling of properties inside of namespaces and TS specific API exposure 2017-04-18 14:28:36 +02:00
dcodeIO
c97b618112 Breaking: Everything uses interfaces now instead of typedefs (SomethingProperties is now ISomething) 2017-04-15 19:29:31 +02:00
dcodeIO
7ab136daa5 Other: Initial map fields support for ext/descriptor, see #757 2017-04-12 22:59:55 +02:00
dcodeIO
23f26defa7 Other: TypeScript generics improvements 2017-04-12 15:33:54 +02:00
dcodeIO
7a6f98b5e7 Breaking: Initial implementation of TypeScript decorators; Breaking: Refactored protobuf.Class away; Breaking: TypeScript definitions now have (a lot of) generics; Breaking: Removed deprecated features; Other: tsd-jsdoc now has limited generics support 2017-04-10 17:17:27 +02:00
dcodeIO
f88dad0982 Other: Revamped benchmark, now also covers Google's JS implementation 2017-04-07 19:38:18 +02:00
dcodeIO
ca0dce2d7f Other: Updated deps, ts fixes and regenerated dist files 2017-03-31 15:47:20 +02:00
dcodeIO
29ce6cae0c CLI: Moved tsd-jsdoc to future cli package, see #716 2017-03-27 16:20:04 +02:00
dcodeIO
ef71e77726 Docs: Added type definitions for all possible JSON descriptors 2017-03-25 22:27:38 +01:00
dcodeIO
b69173b4e7 Other: Updated path to tsd-jsdoc template used by pbts, see #707 2017-03-18 00:47:59 +01:00
dcodeIO
5041fad9de Other: Additional restructuring for moving configuration files out of the root folder 2017-03-12 22:12:09 +01:00