MCPcopy Index your code
hub / github.com/reactjs/react-rails / assert

Function assert

lib/assets/javascripts/JSXTransformer.js:2617–2622  ·  view source on GitHub ↗
(condition, message)

Source from the content-addressed store, hash-verified

2615 // Do NOT use this to enforce a certain condition on any user input.
2616
2617 function assert(condition, message) {
2618 /* istanbul ignore if */
2619 if (!condition) {
2620 throw new Error('ASSERT: ' + message);
2621 }
2622 }
2623
2624 function StringMap() {
2625 this.$data = {};

Callers 8

addCommentFunction · 0.85
scanNumericLiteralFunction · 0.85
scanStringLiteralFunction · 0.85
scanRegExpBodyFunction · 0.85
throwErrorFunction · 0.85
scanJSXEntityFunction · 0.85
scanJSXStringLiteralFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected