From 90e6cb94e9c9a4d055a0983c9c7386daa48f61f9 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:45:03 +0800 Subject: [PATCH] TODO#139893 [ FAQ 常見問題 -我進行預約後,顧問會用甚麼方式聯繫我? ] 文案調整 --- PAMapp/node_modules/es-abstract/helpers/DefineOwnProperty.js | 18 +++++------------- 1 files changed, 5 insertions(+), 13 deletions(-) diff --git a/PAMapp/node_modules/es-abstract/helpers/DefineOwnProperty.js b/PAMapp/node_modules/es-abstract/helpers/DefineOwnProperty.js index fb870f7..61e8371 100644 --- a/PAMapp/node_modules/es-abstract/helpers/DefineOwnProperty.js +++ b/PAMapp/node_modules/es-abstract/helpers/DefineOwnProperty.js @@ -1,23 +1,15 @@ 'use strict'; +var hasPropertyDescriptors = require('has-property-descriptors'); + var GetIntrinsic = require('get-intrinsic'); -var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); +var $defineProperty = hasPropertyDescriptors() && GetIntrinsic('%Object.defineProperty%', true); -if ($defineProperty) { - try { - $defineProperty({}, 'a', { value: 1 }); - } catch (e) { - // IE 8 has a broken defineProperty - $defineProperty = null; - } -} - -// node v0.6 has a bug where array lengths can be Set but not Defined -var hasArrayLengthDefineBug = Object.defineProperty && Object.defineProperty([], 'length', { value: 1 }).length === 0; +var hasArrayLengthDefineBug = hasPropertyDescriptors.hasArrayLengthDefineBug(); // eslint-disable-next-line global-require -var isArray = hasArrayLengthDefineBug && require('../2020/IsArray'); // this does not depend on any other AOs. +var isArray = hasArrayLengthDefineBug && require('../helpers/IsArray'); var callBound = require('call-bind/callBound'); -- Gitblit v1.8.0