Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 915 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 liveuser 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
 
8
try {
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
} catch (e) {
15
    console.error('validation.node seems not to have been built. Run npm install.');
16
    throw e;
17
}}}