2014-04-30 15:17:51 +00:00
|
|
|
// 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.
|
|
|
|
|
2016-08-22 21:34:44 +00:00
|
|
|
// Flags: --expose-debug-as debug
|
2014-04-30 15:17:51 +00:00
|
|
|
|
|
|
|
// 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(); });
|
2016-08-22 21:34:44 +00:00
|
|
|
var q = p.then(function() {
|
2014-04-30 15:17:51 +00:00
|
|
|
new Promise(function(resolve, reject) { resolve(); });
|
|
|
|
});
|