Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
322 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var fails = require('../internals/fails');
|
---|
| 2 |
|
---|
| 3 | // check the existence of a method, lowercase
|
---|
| 4 | // of a tag and escaping quotes in arguments
|
---|
| 5 | module.exports = function (METHOD_NAME) {
|
---|
| 6 | return fails(function () {
|
---|
| 7 | var test = ''[METHOD_NAME]('"');
|
---|
| 8 | return test !== test.toLowerCase() || test.split('"').length > 3;
|
---|
| 9 | });
|
---|
| 10 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.