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