|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
549 bytes
|
| Line | |
|---|
| 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.