1 /* jshint node: true */
  2 /*
  3  * ilib-node.js - glue code for node to load local ilib code and
  4  * data dynamically
  5  *
  6  * Copyright © 2015, JEDLSoft
  7  *
  8  * Licensed under the Apache License, Version 2.0 (the "License");
  9  * you may not use this file except in compliance with the License.
 10  * You may obtain a copy of the License at
 11  *
 12  *     http://www.apache.org/licenses/LICENSE-2.0
 13  *
 14  * Unless required by applicable law or agreed to in writing, software
 15  * distributed under the License is distributed on an "AS IS" BASIS,
 16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 17  *
 18  * See the License for the specific language governing permissions and
 19  * limitations under the License.
 20  */
 21 
 22 var NodeLoader = require("../lib/NodeLoader.js");
 23 
 24 var ilib = require("../lib/ilib.js");
 25 ilib.setLoaderCallback(NodeLoader(ilib));
 26 
 27 ilib._dyncode = true; // indicate that we are using dynamically loaded code
 28 ilib._dyndata = true;
 29 
 30 module.exports = ilib;
 31 
 32