title: Electron setTimeout returns number in renderer process instead of Timeout object
body: <p>I have noticed that <strong>in a renderer process of Electron</strong>, <code>setTimeout</code> node function returns a <code>number</code> (integer) instead of a <code>Timeout</code> Object.</p>
  
  <p>In main process, it returns the expected <code>Timeout</code> object</p>
  
  <p>I use last version (i.e. <code>4.0.5</code>).</p>
  
  <p>.</p>
  
  <p>console of the renderer process :</p>
  
  <p><a href="https://i.stack.imgur.com/4fBoQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4fBoQ.png" alt="enter image description here"></a></p>
  
  <p>console of main process :</p>
  
  <pre><code>npm start
  
  &gt; electron-timer-bug@0.0.1 start /home/doom/Documents/projets/testElectron/electron-timer-bug
  &gt; electron .
  
  /home/doom/Documents/projets/testElectron/electron-timer-bug/node_modules/electron/dist/electron: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /home/doom/Documents/projets/testElectron/electron-timer-bug/node_modules/electron/dist/electron)
  /home/doom/Documents/projets/testElectron/electron-timer-bug/node_modules/electron/dist/electron: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /home/doom/Documents/projets/testElectron/electron-timer-bug/node_modules/electron/dist/electron)
  Fontconfig warning: "/etc/fonts/fonts.conf", line 86: unknown element "blank"
  mainWatchdog :  Timeout {
    _called: false,
    _idleTimeout: 1000,
    _idlePrev:
     TimersList {
       _idleNext: [Circular],
       _idlePrev: [Circular],
       _unrefed: false,
       msecs: 1000,
       _timer: Timer { _list: [Circular] } },
    _idleNext:
     TimersList {
       _idleNext: [Circular],
       _idlePrev: [Circular],
       _unrefed: false,
       msecs: 1000,
       _timer: Timer { _list: [Circular] } },
    _idleStart: 648,
    _onTimeout: [Function],
    _timerArgs: undefined,
    _repeat: null,
    _destroyed: false,
    [Symbol(unrefed)]: false,
    [Symbol(asyncId)]: 7,
    [Symbol(triggerId)]: 5 }
  typeof(mainWatchdog) :  object
  mainWatchdog.constructor.name:  Timeout
  main callback
  </code></pre>
  
  <p>It is the same with or without nodeIntegration.</p>
  
  <p>Here is the testing repo : <a href="https://gitlab.com/doom-fr/electron-timer-bug" rel="nofollow noreferrer">https://gitlab.com/doom-fr/electron-timer-bug</a></p>
  
  <p>Is it normal ? What's going wrong ?</p>
  
  <p>Doom</p>