author Kyle Huey <>
Mon, 28 Mar 2016 10:28:14 -0700
changeset 290734 a25d3a1c24b73bdfedf2196c0cee3b37bfb606a1
parent 290196 30134b3e46fa5564d0baa165b75783e394bf6ac2
child 290936 11c3335d77fb751128c456daa204385d69678484
permissions -rw-r--r--
Bug 1259290: Part 1 - Remove unnecessary JS_ReportError calls. r=bz

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at */

[Global=(WorkerDebugger), Exposed=WorkerDebugger]
interface WorkerDebuggerGlobalScope : EventTarget {
  readonly attribute object global;

  object createSandbox(DOMString name, object prototype);

  void loadSubScript(DOMString url, optional object sandbox);

  void enterEventLoop();

  void leaveEventLoop();

  void postMessage(DOMString message);

  attribute EventHandler onmessage;

  void setImmediate(Function handler);

  void reportError(DOMString message);

  sequence<any> retrieveConsoleEvents();

  void setConsoleEventHandler(AnyCallback handler);

// So you can debug while you debug
partial interface WorkerDebuggerGlobalScope {
  void dump(optional DOMString string);

  [Throws, Replaceable]
  readonly attribute Console console;