blob: c669b3bd4ba9af6caeddae777d9570b1025d778f [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// 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 Stringified(toString) {
6 var valueOf = "-" + toString + "-";
7 return {
8 toString: function() { return toString; },
9 valueOf: function() { return valueOf; }
10 };
11}
12
13assertEquals("a.b.", "a.".concat(Stringified("b.")));
14assertEquals("a.b.c.", "a.".concat(Stringified("b."), Stringified("c.")));