diff options
| author | 8cy <[email protected]> | 2020-04-30 15:46:16 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-30 15:46:16 -0700 |
| commit | 3a4deac89054021b56ad5bd8005b2044cc085c98 (patch) | |
| tree | 3dd6af8503e497e46180b6b5231674f36bdce9f2 /node_modules/express-handlebars/lib/utils.js | |
| download | uppity-3a4deac89054021b56ad5bd8005b2044cc085c98.tar.xz uppity-3a4deac89054021b56ad5bd8005b2044cc085c98.zip | |
Up, up, uppity.
Diffstat (limited to 'node_modules/express-handlebars/lib/utils.js')
| -rw-r--r-- | node_modules/express-handlebars/lib/utils.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/node_modules/express-handlebars/lib/utils.js b/node_modules/express-handlebars/lib/utils.js new file mode 100644 index 0000000..55a9da6 --- /dev/null +++ b/node_modules/express-handlebars/lib/utils.js @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2014, Yahoo Inc. All rights reserved. + * Copyrights licensed under the New BSD License. + * See the accompanying LICENSE file for terms. + */ + +"use strict"; + +exports.assign = Object.assign || require("object.assign"); +exports.passError = passError; +exports.passValue = passValue; + +// ----------------------------------------------------------------------------- + +function passError (callback) { + return function (reason) { + setImmediate(function () { + callback(reason); + }); + }; +} + +function passValue (callback) { + return function (value) { + setImmediate(function () { + callback(null, value); + }); + }; +} |