aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/_strict-method.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/modules/_strict-method.js')
-rw-r--r--node_modules/core-js/modules/_strict-method.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/node_modules/core-js/modules/_strict-method.js b/node_modules/core-js/modules/_strict-method.js
new file mode 100644
index 000000000..96b6c6e8a
--- /dev/null
+++ b/node_modules/core-js/modules/_strict-method.js
@@ -0,0 +1,7 @@
+var fails = require('./_fails');
+
+module.exports = function(method, arg){
+ return !!method && fails(function(){
+ arg ? method.call(null, function(){}, 1) : method.call(null);
+ });
+}; \ No newline at end of file