/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/test/mjsunit/string-concat.js
14 строк
478 B
Chris Dickinson
deps: update v8 to 4.3.61.21
04 авг 2015, 21:56
04 авг 2015, 21:56
d58e780
Код
Авторство
О чём код?
// 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. function Stringified(toString) { var valueOf = "-" + toString + "-"; return { toString: function() { return toString; }, valueOf: function() { return valueOf; } }; } assertEquals("a.b.", "a.".concat(Stringified("b."))); assertEquals("a.b.c.", "a.".concat(Stringified("b."), Stringified("c.")));