summaryrefslogtreecommitdiff
path: root/chromium/net/data/proxy_resolver_v8_unittest/ends_with_comment.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/data/proxy_resolver_v8_unittest/ends_with_comment.js')
-rw-r--r--chromium/net/data/proxy_resolver_v8_unittest/ends_with_comment.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/chromium/net/data/proxy_resolver_v8_unittest/ends_with_comment.js b/chromium/net/data/proxy_resolver_v8_unittest/ends_with_comment.js
new file mode 100644
index 00000000000..bbfef8561d2
--- /dev/null
+++ b/chromium/net/data/proxy_resolver_v8_unittest/ends_with_comment.js
@@ -0,0 +1,8 @@
+function FindProxyForURL(url, host) {
+ return "PROXY success:80";
+}
+
+// We end the script with a comment (and no trailing newline).
+// This used to cause problems, because internally ProxyResolverV8
+// would append some functions to the script; the first line of
+// those extra functions was being considered part of the comment. \ No newline at end of file