diff options
Diffstat (limited to 'net/data/proxy_resolver_v8_unittest')
-rw-r--r-- | net/data/proxy_resolver_v8_unittest/ends_with_comment.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/data/proxy_resolver_v8_unittest/ends_with_comment.js b/net/data/proxy_resolver_v8_unittest/ends_with_comment.js new file mode 100644 index 0000000..7fb631f --- /dev/null +++ b/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. |