| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b76c13e commit 6bf0e40
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,10 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - const { Object } = primordials; | ||
| 3 | + const { | ||
| 4 | + Object: { | ||
| 5 | + setPrototypeOf: ObjectSetPrototypeOf | ||
| 6 | + } | ||
| 7 | + } = primordials; | ||
| 4 | 8 | ||
| 5 | 9 | const EventEmitter = require('events'); | |
| 6 | 10 | ||
@@ -32,8 +36,8 @@ function Worker(options) { | |||
| 32 | 36 | } | |
| 33 | 37 | } | |
| 34 | 38 | ||
| 35 | - Object.setPrototypeOf(Worker.prototype, EventEmitter.prototype); | ||
| 36 | - Object.setPrototypeOf(Worker, EventEmitter); | ||
| 39 | + ObjectSetPrototypeOf(Worker.prototype, EventEmitter.prototype); | ||
| 40 | + ObjectSetPrototypeOf(Worker, EventEmitter); | ||
| 37 | 41 | ||
| 38 | 42 | Worker.prototype.kill = function() { | |
| 39 | 43 | this.destroy.apply(this, arguments); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments