1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16export enum BuiltinProblem { 17 LimitedThisArg = 'ThisArg', 18 SymbolIterator = 'SymbolIterator', 19 BuiltinNoCtorFunc = 'BuiltinNoCtorFunc', 20 BuiltinNoPropertyDescriptor = 'NoPropertyDescriptor', 21 MissingAttributes = 'MissingAttributes' 22} 23 24export const SYMBOL_ITERATOR: string = 'Symbol.iterator'; 25 26export const GET_OWN_PROPERTY_NAMES_TEXT: string = 'Object.getOwnPropertyNames'; 27 28export const BUILTIN_DISABLE_CALLSIGNATURE = [ 29 'AggregateError', 30 'Array', 31 'Array', 32 'BigInt', 33 'Boolean', 34 'Date', 35 'Error', 36 'EvalError', 37 'Number', 38 'RangeError', 39 'ReferenceError', 40 'RegExp', 41 'RegExp', 42 'RegExp', 43 'String', 44 'SyntaxError', 45 'TypeError', 46 'URIError' 47]; 48