// 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: --allow-natives-syntaxfunctionopt(b){letiterator=newSet().values();iterator.x=0;letarr=[iterator,iterator];if(b)returnarr.slice();}opt(false);opt(false);%OptimizeFunctionOnNextCall(opt);letres=opt(true);leta=res[0];letb=res[1];assertTrue(a===b);a.x=7;assertEquals(7,b.x);