title: Is it possible to create instance of ClipboardEvent in Chrome?
body: <p>I need to programmatically create a ClipboardEvent instance in Chrome.</p>
  
  <p>But when I run the constructor:</p>
  
  <pre><code>new ClipboardEvent("paste", {dataType: "text/plain", data: "some data"})
  </code></pre>
  
  <p>It throws the following error:</p>
  
  <pre><code>Uncaught TypeError: Illegal constructor
  </code></pre>
  
  <p>The constructor works as intended in Firefox.</p>
  
  <p>Checked <a href="https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/ClipboardEvent" rel="nofollow noreferrer">MDN</a> and <a href="http://dev.w3.org/2006/webapi/clipops/clipops.html#other-security-and-privacy-considerations" rel="nofollow noreferrer">W3C spec</a> and they don't mention anything about it being illegal to create instances of ClipboardEvent.</p>
  
  <p><strong>Is it possible to create an instance of ClipboardEvent in Chrome in any other way?</strong> I prefer to not mock a custom ClipboardEvent when one exists.</p>
  
  <p><strong>Update 2018-07-17:</strong> Using the ClipboardEvent seems to work in Chrome 69. </p>