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:
336 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict';
|
---|
| 2 | var fails = require('../internals/fails');
|
---|
| 3 |
|
---|
| 4 | // check the existence of a method, lowercase
|
---|
| 5 | // of a tag and escaping quotes in arguments
|
---|
| 6 | module.exports = function (METHOD_NAME) {
|
---|
| 7 | return fails(function () {
|
---|
| 8 | var test = ''[METHOD_NAME]('"');
|
---|
| 9 | return test !== test.toLowerCase() || test.split('"').length > 3;
|
---|
| 10 | });
|
---|
| 11 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.