// Copyright 2017 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-wasm --expose-gc --verify-heapload("test/mjsunit/wasm/user-properties-common.js");(functionImportReexportChain(){print("ImportReexportChain");varf=id;for(leti=0;i<5;i++){letbuilder=newWasmModuleBuilder();builder.addImport("imp","func",kSig_i_i);builder.addExport("exp",0);letmodule=builder.toModule();letinstance=newWebAssembly.Instance(module,{imp:{func:f}});letg=instance.exports.exp;assertInstanceof(g,Function);printName("before",g);testProperties(g);printName(" after",g);