mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 03:02:21 +00:00
commit
3f1a831aa1
@ -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