We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf7af7 commit 7b38d37Copy full SHA for 7b38d37
lib/chalk.js
@@ -41,7 +41,7 @@ chalk.wrap = function(pre, post) {
41
var f = function(s) {
42
return chalk.print(s);
43
};
44
- f.__proto__ = chalk;
+ Object.setPrototypeOf(f, chalk);
45
return f;
46
47
lib/plugin.js
@@ -21,7 +21,8 @@ Plugin.prototype.init = function() {
21
22
23
Plugin.prototype.setNext = function(next) {
24
- this.next = this.__proto__ = next;
+ Object.setPrototypeOf(this, next);
25
+ this.next = next;
26
27
28
Plugin.plugins = [];
0 commit comments