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.
|
|
|
|
|
2014-06-20 10:47:50 +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(); });
|
|
|
|
var q = p.chain(function() {
|
|
|
|
new Promise(function(resolve, reject) { resolve(); });
|
|
|
|
});
|