From 87ee33caec29804545a8144da2c575a4371f0b05 Mon Sep 17 00:00:00 2001 From: Claude Pache Date: Tue, 25 Jun 2019 08:19:42 +0200 Subject: [PATCH] =?UTF-8?q?add=20example=20for=20=E2=80=9Cnot=20an=20error?= =?UTF-8?q?=20suppression=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e1e5eda..e58b8c0 100644 --- a/README.md +++ b/README.md @@ -306,6 +306,7 @@ No. Optional Chaining just checks whether some value is undefined or null. It do undeclared_var?.b // ReferenceError: undeclared_var is not defined arguments?.callee // TypeError: 'callee' may not be accessed in strict mode arguments.callee?.() // TypeError: 'callee' may not be accessed in strict mode + true?.() // TypeError: true is not a function })() ```