GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — angular/node_modules/better-assert/index.js at master · rkshgupta/angular Expand file tree/ Copy pathindex.jsMore file actions 38 lines (30 loc) · 694 Bytes / Copy pathindex.jsFile metadata and controls38 lines (30 loc) · 694 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 /** * Module dependencies. */ var AssertionError = require('assert').AssertionError , callsite = require('callsite') , fs = require('fs') /** * Expose `assert`. */ module.exports = process.env.NO_ASSERT ? function(){} : assert; /** * Assert the given `expr`. */ function assert(expr) { if (expr) return; var stack = callsite(); var call = stack[1]; var file = call.getFileName(); var lineno = call.getLineNumber(); var src = fs.readFileSync(file, 'utf8'); var line = src.split('\n')[lineno-1]; var src = line.match(/assert\((.*)\)/)[1]; var err = new AssertionError({ message: src, stackStartFunction: stack[0].getFunction() }); throw err; } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |