aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/string/raw/is-implemented.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es5-ext/string/raw/is-implemented.js')
-rw-r--r--node_modules/es5-ext/string/raw/is-implemented.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/es5-ext/string/raw/is-implemented.js b/node_modules/es5-ext/string/raw/is-implemented.js
new file mode 100644
index 000000000..8758108c0
--- /dev/null
+++ b/node_modules/es5-ext/string/raw/is-implemented.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = function () {
+ var raw = String.raw, test;
+ if (typeof raw !== "function") return false;
+ test = ["foo\nbar", "marko\n"];
+ test.raw = ["foo\\nbar", "marko\\n"];
+ return raw(test, "INSE\nRT") === "foo\\nbarINSE\nRTmarko\\n";
+};