// 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-syntaxfunctionC1(){}C1.prototype.f=function(){return1;}functionC2(){}C2.prototype.f=function(){throw2;}varo1=newC1();varo2=newC2();functionfoo(o){returno.f();}