���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /home/real/node-v13.0.1/deps/v8/src/builtins/ |
// Copyright 2019 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. namespace string_slice { extern macro SubString(String, intptr, intptr): String; // ES6 #sec-string.prototype.slice ( start, end ) // https://tc39.github.io/ecma262/#sec-string.prototype.slice transitioning javascript builtin StringPrototypeSlice( js-implicit context: Context, receiver: JSAny)(...arguments): String { // 1. Let O be ? RequireObjectCoercible(this value). // 2. Let S be ? ToString(O). const string: String = ToThisString(receiver, 'String.prototype.slice'); // 3. Let len be the number of elements in S. const length: intptr = string.length_intptr; // Convert {start} to a relative index. const start: intptr = ConvertToRelativeIndex(arguments[0], length); // 5. If end is undefined, let intEnd be len; // else Convert {end} to a relative index. const temp = arguments[1]; const end: intptr = temp == Undefined ? length : ConvertToRelativeIndex(temp, length); if (end <= start) { return kEmptyString; } return SubString(string, start, end); } }