chromium/services/proxy_resolver/test/data/proxy_resolver_v8_unittest/exception_findproxyforurl_during_init.js

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This PAC script will throw an exception when accessing the
// "FindProxyForURL" property.

function FindProxyForURLGetter() {
  throw "crash!";
}

Object.defineProperty(this, "FindProxyForURL", {get: FindProxyForURLGetter});