metarhia / jstp

Fast RPC for browser and Node.js based on TCP, WebSocket, and MDSF
https://metarhia.github.io/jstp
Other
142 stars 10 forks source link

parser: fix not throwing error in some cases #171

Closed belochub closed 7 years ago

belochub commented 7 years ago

Fix not throwing error when parsing arrays and objects that have no closing brackets and objects that have empty values for some of the keys.

Examples of such cases:

belochub commented 7 years ago

@aqrln, I fixed the typo you mentioned and added some test cases for this fix, PTAL.

belochub commented 7 years ago

Landed in https://github.com/metarhia/JSTP/commit/27675537261f88b8a9a9d488facae5f515f3007e.