1// Copyright 2015 the V8 project authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5function f() {} 6var fb = f.bind({}); 7assertEquals('bound f', fb.name); 8 9Object.defineProperty(f, 'name', {value: 42}); 10var fb2 = f.bind({}); 11assertEquals('bound ', fb2.name); 12 13function g() {} 14var gb = g.bind({}); 15assertEquals('bound g', gb.name); 16assertEquals('bound f', fb.name); 17