From 9bdb95c9e34cef640534e5e5a1e2225a80442000 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:48:15 +0800
Subject: [PATCH] TODO#139894 [ footer -最下方說明與保經代合作 ] 文案修改

---
 PAMapp/node_modules/es-abstract/2017/FromPropertyDescriptor.js |   28 ++++------------------------
 1 files changed, 4 insertions(+), 24 deletions(-)

diff --git a/PAMapp/node_modules/es-abstract/2017/FromPropertyDescriptor.js b/PAMapp/node_modules/es-abstract/2017/FromPropertyDescriptor.js
index 9a69a26..e142ed5 100644
--- a/PAMapp/node_modules/es-abstract/2017/FromPropertyDescriptor.js
+++ b/PAMapp/node_modules/es-abstract/2017/FromPropertyDescriptor.js
@@ -1,36 +1,16 @@
 'use strict';
 
 var assertRecord = require('../helpers/assertRecord');
+var fromPropertyDescriptor = require('../helpers/fromPropertyDescriptor');
 
 var Type = require('./Type');
 
 // https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
 
 module.exports = function FromPropertyDescriptor(Desc) {
-	if (typeof Desc === 'undefined') {
-		return Desc;
+	if (typeof Desc !== 'undefined') {
+		assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
 	}
 
-	assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
-
-	var obj = {};
-	if ('[[Value]]' in Desc) {
-		obj.value = Desc['[[Value]]'];
-	}
-	if ('[[Writable]]' in Desc) {
-		obj.writable = Desc['[[Writable]]'];
-	}
-	if ('[[Get]]' in Desc) {
-		obj.get = Desc['[[Get]]'];
-	}
-	if ('[[Set]]' in Desc) {
-		obj.set = Desc['[[Set]]'];
-	}
-	if ('[[Enumerable]]' in Desc) {
-		obj.enumerable = Desc['[[Enumerable]]'];
-	}
-	if ('[[Configurable]]' in Desc) {
-		obj.configurable = Desc['[[Configurable]]'];
-	}
-	return obj;
+	return fromPropertyDescriptor(Desc);
 };

--
Gitblit v1.8.0