Index: test/mjsunit/es6/debug-promises-new-event.js |
diff --git a/test/mjsunit/es6/debug-promises-new-event.js b/test/mjsunit/es6/debug-promises-new-event.js |
index 06a977431eed56f7b6f342854e4dd95319900208..b08077c5b884d7939ac8044b65b3b72c1d388b13 100644 |
--- a/test/mjsunit/es6/debug-promises-new-event.js |
+++ b/test/mjsunit/es6/debug-promises-new-event.js |
@@ -10,7 +10,7 @@ var exception = null; |
var new_promise; |
function listener(event, exec_state, event_data, data) { |
- if (event != Debug.DebugEvent.PromiseEvent) return; |
+ if (!(event_data instanceof debug.NewPromiseEvent)) return; |
try { |
assertTrue(event_data.resolver().isFunction()); |
assertEquals(resolver, event_data.resolver().value()); |