main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
549 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict';
|
---|
| 2 | var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;
|
---|
| 3 | var fails = require('../internals/fails');
|
---|
| 4 | var whitespaces = require('../internals/whitespaces');
|
---|
| 5 |
|
---|
| 6 | var non = '\u200B\u0085\u180E';
|
---|
| 7 |
|
---|
| 8 | // check that a method works with the correct list
|
---|
| 9 | // of whitespaces and has a correct name
|
---|
| 10 | module.exports = function (METHOD_NAME) {
|
---|
| 11 | return fails(function () {
|
---|
| 12 | return !!whitespaces[METHOD_NAME]()
|
---|
| 13 | || non[METHOD_NAME]() !== non
|
---|
| 14 | || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
|
---|
| 15 | });
|
---|
| 16 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.