From 14704db3991e289be9ae5138bde7fee4b681cc71 Mon Sep 17 00:00:00 2001 From: CosSalt <36765589+CosSalt@users.noreply.github.com> Date: Wed, 22 Aug 2018 01:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 书写错误,BigInt写成了BitInt --- docs/proposals.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/proposals.md b/docs/proposals.md index a502f97..7a421c6 100644 --- a/docs/proposals.md +++ b/docs/proposals.md @@ -570,11 +570,11 @@ JavaScript 原生提供`BigInt`对象,可以用作构造函数生成 BitInt ```javascript BigInt(123) // 123n BigInt('123') // 123n -BitInt(false) // 0n -BitInt(true) // 1n +BigInt(false) // 0n +BigInt(true) // 1n ``` -`BitInt`构造函数必须有参数,而且参数必须可以正常转为数值,下面的用法都会报错。 +`BigInt`构造函数必须有参数,而且参数必须可以正常转为数值,下面的用法都会报错。 ```javascript new BitInt() // TypeError