From 26a09f08cf1ed43c640879f23fdad56c5c9282f7 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:02:38 +0800
Subject: [PATCH] TODO#139884 Banner 1 文案調整

---
 PAMapp/node_modules/core-js/modules/es.regexp.sticky.js |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/PAMapp/node_modules/core-js/modules/es.regexp.sticky.js b/PAMapp/node_modules/core-js/modules/es.regexp.sticky.js
index b63125b..087dd6d 100644
--- a/PAMapp/node_modules/core-js/modules/es.regexp.sticky.js
+++ b/PAMapp/node_modules/core-js/modules/es.regexp.sticky.js
@@ -1,19 +1,23 @@
+var global = require('../internals/global');
 var DESCRIPTORS = require('../internals/descriptors');
-var UNSUPPORTED_Y = require('../internals/regexp-sticky-helpers').UNSUPPORTED_Y;
-var defineProperty = require('../internals/object-define-property').f;
+var MISSED_STICKY = require('../internals/regexp-sticky-helpers').MISSED_STICKY;
+var classof = require('../internals/classof-raw');
+var defineBuiltInAccessor = require('../internals/define-built-in-accessor');
 var getInternalState = require('../internals/internal-state').get;
+
 var RegExpPrototype = RegExp.prototype;
+var TypeError = global.TypeError;
 
 // `RegExp.prototype.sticky` getter
 // https://tc39.es/ecma262/#sec-get-regexp.prototype.sticky
-if (DESCRIPTORS && UNSUPPORTED_Y) {
-  defineProperty(RegExpPrototype, 'sticky', {
+if (DESCRIPTORS && MISSED_STICKY) {
+  defineBuiltInAccessor(RegExpPrototype, 'sticky', {
     configurable: true,
-    get: function () {
+    get: function sticky() {
       if (this === RegExpPrototype) return undefined;
       // We can't use InternalStateModule.getterFor because
       // we don't add metadata for regexps created by a literal.
-      if (this instanceof RegExp) {
+      if (classof(this) === 'RegExp') {
         return !!getInternalState(this).sticky;
       }
       throw TypeError('Incompatible receiver, RegExp required');

--
Gitblit v1.8.0