Chromium Code Reviews| Index: net/data/proxy_resolver_v8_unittest/exception_findproxyforurl_during_init.js |
| diff --git a/net/data/proxy_resolver_v8_unittest/exception_findproxyforurl_during_init.js b/net/data/proxy_resolver_v8_unittest/exception_findproxyforurl_during_init.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1b47336667a5649db563aee6f5989ed64b3b552c |
| --- /dev/null |
| +++ b/net/data/proxy_resolver_v8_unittest/exception_findproxyforurl_during_init.js |
| @@ -0,0 +1,8 @@ |
| +// This PAC script will throw an exception when accessing the |
| +// "FindProxyForURL" property. |
| + |
| +function FindProxyForURLGetter() { |
|
mmenke
2015/02/20 22:15:05
nit: f should be lowercase, I believe.
eroman
2015/02/20 22:24:23
In my mind "FindProxyForURL" is the target object,
|
| + throw "crash!"; |
| +} |
| + |
| +Object.defineProperty(this, "FindProxyForURL", {get: FindProxyForURLGetter}); |