Skip to content

Conversation

@jhorbulyk
Copy link
Contributor

Function described in #369

@coveralls
Copy link

coveralls commented Oct 2, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling fd11f17 on elasticio:add-assert-function into 3cb51df on jsonata-js:master.

src/functions.js Outdated
* @returns {undefined}
*/
function assert(condition, message) {
if(condition) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this the wrong way round? it should throw if the condition is false

@andrew-coleman andrew-coleman merged commit dcb52bc into jsonata-js:master Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants