/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/test/mjsunit/function-bind-name.js
16 строк
449 B
Michaël Zasso
deps: backport 6d32be2 from v8's upstream
17 сен 2015, 03:35
17 сен 2015, 03:35
d7da617
Код
Авторство
О чём код?
// 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 f() {} var fb = f.bind({}); assertEquals('bound f', fb.name); Object.defineProperty(f, 'name', {value: 42}); var fb2 = f.bind({}); assertEquals('bound ', fb2.name); function g() {} var gb = g.bind({}); assertEquals('bound g', gb.name); assertEquals('bound f', fb.name);