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