// 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.// Flags: --expose-gcfunctionmain(){constv2=[1337,1337,1337,1337,1337];functionv9(){constv15={get:RegExp};Object.defineProperty(v2,501,v15);constv18=RegExp();constv19=1337instanceofv18;}constv30={defineProperty:Function,get:v9,getPrototypeOf:Object};constv32=newProxy(ArrayBuffer,v30);constv34=gc(v32);}assertThrows(()=>main(),TypeError);