source: trip-planner-front/node_modules/stylus/lib/functions/warn.js@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 341 bytes
Line 
1var utils = require('../utils')
2 , nodes = require('../nodes');
3
4/**
5 * Warn with the given `msg` prefixed by "Warning: ".
6 *
7 * @param {String} msg
8 * @api public
9 */
10
11function warn(msg){
12 utils.assertType(msg, 'string', 'msg');
13 console.warn('Warning: %s', msg.val);
14 return nodes.null;
15}
16warn.params = ['msg'];
17module.exports = warn;
Note: See TracBrowser for help on using the repository browser.