MCPcopy Index your code
hub / github.com/sql-js/sql.js / assert

Function assert

documentation/javascript/application.js:4683–4694  ·  view source on GitHub ↗
( fn )

Source from the content-addressed store, hash-verified

4681
4682 // Used for testing something on an element
4683 assert = function( fn ) {
4684 var div = document.createElement("div");
4685
4686 try {
4687 return fn( div );
4688 } catch (e) {
4689 return false;
4690 } finally {
4691 // release memory in IE
4692 div = null;
4693 }
4694 },
4695
4696 // Check if getElementsByTagName("*") returns only elements
4697 assertTagNameNoComments = assert(function( div ) {

Callers 1

application.jsFile · 0.70

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…