Blame view

node_modules/stylus/lib/functions/warn.js 313 Bytes
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  var utils = require('../utils')
    , nodes = require('../nodes');
  
  /**
   * Warn with the given `msg` prefixed by "Warning: ".
   *
   * @param {String} msg
   * @api public
   */
  
  module.exports = function warn(msg){
    utils.assertType(msg, 'string', 'msg');
    console.warn('Warning: %s', msg.val);
    return nodes.null;
  };