1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-27 20:32:21 +00:00

Update decorator.md

${name} is wrapped with ""
This commit is contained in:
LiMengKe 2018-01-07 23:34:14 +08:00 committed by GitHub
parent 796501b264
commit 4070712141
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,7 +200,7 @@ function log(target, name, descriptor) {
var oldValue = descriptor.value;
descriptor.value = function() {
console.log(`Calling "${name}" with`, arguments);
console.log(`Calling ${name} with`, arguments);
return oldValue.apply(null, arguments);
};