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

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

initial commit

  • Property mode set to 100644
File size: 341 bytes
RevLine 
[6a3a178]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.