chore: use const instead of let (#524)

This commit is contained in:
ztplz 2019-12-06 07:10:06 +08:00 committed by Evan You
parent 11450ceffd
commit 02478b48eb

View File

@ -13,7 +13,7 @@ const builtInSymbols = new Set(
function createGetter(isReadonly: boolean, shallow = false) {
return function get(target: object, key: string | symbol, receiver: object) {
let res = Reflect.get(target, key, receiver)
const res = Reflect.get(target, key, receiver)
if (isSymbol(key) && builtInSymbols.has(key)) {
return res
}