Last change
on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
341 bytes
|
Line | |
---|
1 | var 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 |
|
---|
11 | function warn(msg){
|
---|
12 | utils.assertType(msg, 'string', 'msg');
|
---|
13 | console.warn('Warning: %s', msg.val);
|
---|
14 | return nodes.null;
|
---|
15 | }
|
---|
16 | warn.params = ['msg'];
|
---|
17 | module.exports = warn;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.