// Copyright 2020 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.vartypedArrayProto=Uint8Array.prototype.__proto__;vartypedArrayConstructor=Uint8Array.prototype.constructor[Symbol.species];varcalled=false;Uint8Array.prototype.__proto__={};Uint8Array.prototype.constructor={get[Symbol.species](){called=true;returntypedArrayConstructor;}}Uint8Array.prototype.__proto__=typedArrayProto;vararr=newUint8Array(8);arr.slice(1,5);assertTrue(called);