chromium/chrome/test/data/extensions/api_test/service_worker/worker_based_background/undefined_variable/service_worker_background.js

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

chrome.test.sendMessage('ready', () => {
  undefinedVariableError();
});

var undefinedVariableError = function() {
  // Intentional undefined variable
  console.log(undefined_variable);
};