mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 10:22:23 +00:00
docs(decorator): edit decorator
This commit is contained in:
parent
53cf097ccb
commit
caeb8706bd
@ -201,7 +201,7 @@ function log(target, name, descriptor) {
|
||||
|
||||
descriptor.value = function() {
|
||||
console.log(`Calling ${name} with`, arguments);
|
||||
return oldValue.apply(null, arguments);
|
||||
return oldValue.apply(this, arguments);
|
||||
};
|
||||
|
||||
return descriptor;
|
||||
|
Loading…
x
Reference in New Issue
Block a user