mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-30 06:37:27 +00:00
Update decorator.md
${name} is wrapped with ""
This commit is contained in:
parent
796501b264
commit
4070712141
@ -200,7 +200,7 @@ function log(target, name, descriptor) {
|
|||||||
var oldValue = descriptor.value;
|
var oldValue = descriptor.value;
|
||||||
|
|
||||||
descriptor.value = function() {
|
descriptor.value = function() {
|
||||||
console.log(`Calling "${name}" with`, arguments);
|
console.log(`Calling ${name} with`, arguments);
|
||||||
return oldValue.apply(null, arguments);
|
return oldValue.apply(null, arguments);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user