initial commit
[JIRC.git] / node_modules / websocket / lib / Validation.js
CommitLineData
39c8b14f 1/*!
2 * UTF-8 Validation Code originally from:
3 * ws: a node.js websocket client
4 * Copyright(c) 2011 Einar Otto Stangvik <einaros@gmail.com>
5 * MIT Licensed
6 */
7
8try {
9 module.exports = require('../build/Release/validation');
10} catch (e) { try {
11 module.exports = require('../build/default/validation');
12} catch (e) { try {
13 module.exports = require('./Validation.fallback');
14 console.warn("Warning: Native modules not compiled. UTF-8 validation disabled.")
15} catch (e) {
16 console.error("validation.node seems not to have been built. Run npm install.")
17 throw e;
18}}}