13 lines
346 B
JavaScript
13 lines
346 B
JavaScript
/**
|
|
* Worker routines for Node platform. This module tries to load native
|
|
* addon and makes it available for Node.
|
|
*/
|
|
|
|
try {
|
|
module.exports = require("../build/Release/worker");
|
|
} catch(e) {
|
|
// Do nothing for a moment. Everything will work except the functions
|
|
// that uses worker routines.
|
|
// TODO(Kagami) Provide pure JS fallback.
|
|
}
|