1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

docs(decorator): edit decorator

This commit is contained in:
ruanyf 2018-04-15 21:31:19 +08:00
parent 53cf097ccb
commit caeb8706bd

View File

@ -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;