From b6c5b9856673dd7c6bea19043d26caafe68b723a Mon Sep 17 00:00:00 2001 From: Pedro Liang Date: Thu, 28 Nov 2019 10:04:38 +0800 Subject: [PATCH] Fix 12-Proxies-and-Reflection.md chapter set trap --- manuscript/12-Proxies-and-Reflection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manuscript/12-Proxies-and-Reflection.md b/manuscript/12-Proxies-and-Reflection.md index 9ed01899..e6f58852 100644 --- a/manuscript/12-Proxies-and-Reflection.md +++ b/manuscript/12-Proxies-and-Reflection.md @@ -103,7 +103,7 @@ let proxy = new Proxy(target, { // ignore existing properties so as not to affect them if (!trapTarget.hasOwnProperty(key)) { if (isNaN(value)) { - throw new TypeError("Property must be a number."); + throw new TypeError("Property value must be a number."); } }