aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/internals/string-html-forced.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/internals/string-html-forced.js')
-rw-r--r--node_modules/core-js/internals/string-html-forced.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/node_modules/core-js/internals/string-html-forced.js b/node_modules/core-js/internals/string-html-forced.js
new file mode 100644
index 0000000..d3c884f
--- /dev/null
+++ b/node_modules/core-js/internals/string-html-forced.js
@@ -0,0 +1,10 @@
+var fails = require('../internals/fails');
+
+// check the existence of a method, lowercase
+// of a tag and escaping quotes in arguments
+module.exports = function (METHOD_NAME) {
+ return fails(function () {
+ var test = ''[METHOD_NAME]('"');
+ return test !== test.toLowerCase() || test.split('"').length > 3;
+ });
+};