From fb04f8e51ee08f2aeacbac2b516012c856ab8761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E9=9B=86=E5=9B=A2?= <2607824216@qq.com> Date: Thu, 8 Jun 2017 18:15:21 +0800 Subject: [PATCH] syntax error I think this code will throw error. Compare the change, you will find what's wrong. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 788db13..ab55fed 100644 --- a/README.md +++ b/README.md @@ -63,8 +63,8 @@ let description = { description = readonly(Person.prototype, 'name', description) || description; defineDecoratedProperty(Person.prototype, 'name', description); -function defineDecoratedProperty(target, { initializer, enumerable, configurable, writable }) { - Object.defineProperty(target, { value: initializer(), enumerable, configurable, writable }); +function defineDecoratedProperty(target,name, { initializer, enumerable, configurable, writable }) { + Object.defineProperty(target, name,{ value: initializer(), enumerable, configurable, writable }); } ```