From 23b60dc1975db38c280d8a123aff97544d1673e0 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:34:21 +0800 Subject: [PATCH] TODO#139890 FAQ 常見問題 1-文案調整 --- PAMapp/node_modules/core-js/modules/es.string.search.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/PAMapp/node_modules/core-js/modules/es.string.search.js b/PAMapp/node_modules/core-js/modules/es.string.search.js index c625a18..85b3991 100644 --- a/PAMapp/node_modules/core-js/modules/es.string.search.js +++ b/PAMapp/node_modules/core-js/modules/es.string.search.js @@ -1,4 +1,5 @@ 'use strict'; +var call = require('../internals/function-call'); var fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic'); var anObject = require('../internals/an-object'); var requireObjectCoercible = require('../internals/require-object-coercible'); @@ -15,7 +16,7 @@ function search(regexp) { var O = requireObjectCoercible(this); var searcher = regexp == undefined ? undefined : getMethod(regexp, SEARCH); - return searcher ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](toString(O)); + return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O)); }, // `RegExp.prototype[@@search]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@search -- Gitblit v1.8.0