massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / try-to-string.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/try-to-string.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/try-to-string.js
new file mode 100644 (file)
index 0000000..f9c4514
--- /dev/null
@@ -0,0 +1,11 @@
+var global = require('../internals/global');
+
+var String = global.String;
+
+module.exports = function (argument) {
+  try {
+    return String(argument);
+  } catch (error) {
+    return 'Object';
+  }
+};