/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/test/mjsunit/try-catch-default-destructuring.js
24 строки
437 B
Michaël Zasso
deps: update V8 to 7.3.492.25
14 мар 2019, 20:49
Не верифицирован
14 мар 2019, 20:49
7b48713
Код
Авторство
О чём код?
// Copyright 2018 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 f1() { let y = 200; try { throw {} } catch ({x=()=>y, y=300}) { return x() } } assertEquals(300, f1()); function f2() { let y = 200; try { throw {} } catch ({x=()=>y}) { let y = 300; return x() } } assertEquals(200, f2());