/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/test/debugger/debug/es6/debug-promises/reentry.js
16 строк
503 B
Michaël Zasso
deps: update V8 to 5.6.326.55
22 фев 2017, 17:55
22 фев 2017, 17:55
7a77daf
Код
Авторство
О чём код?
// Copyright 2014 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. // Test reentry of special try catch for Promises. Debug = debug.Debug; Debug.setBreakOnUncaughtException(); Debug.setListener(function(event, exec_state, event_data, data) { }); var p = new Promise(function(resolve, reject) { resolve(); }); var q = p.then(function() { new Promise(function(resolve, reject) { resolve(); }); });