linx-simulator2/node_modules/config/raw.js

16 lines
383 B
JavaScript
Raw Normal View History

2019-09-18 08:11:16 +00:00
/**
* This is meant to wrap configuration objects that should be left as is,
* meaning that the object or its protoype will not be modified in any way
*/
function RawConfig () {
}
function raw(rawObj) {
var obj = Object.create(RawConfig.prototype);
obj.resolve = function () { return rawObj; }
return obj;
}
module.exports.RawConfig = RawConfig;
module.exports.raw = raw;