// Copyright 2015 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.varhandler={ownKeys:function(t){return["a","b"];},getOwnPropertyDescriptor:function(t,p){return{enumerable:true,configurable:true}},get:function(t,p){return1;}};varproxy=newProxy({},handler);varo={};Object.assign(o,proxy);assertEquals({"a":1,"b":1},o);(functionTestStringSources(){varsource="abc";vartarget={};Object.assign(target,source);assertEquals({0:"a",1:"b",2:"c"},target);})();