Index: test/mjsunit/debug-compile-event.js |
=================================================================== |
--- test/mjsunit/debug-compile-event.js (revision 1903) |
+++ test/mjsunit/debug-compile-event.js (working copy) |
@@ -65,6 +65,10 @@ |
// exact source. |
assertEquals(current_source, event_data.script().source()); |
} |
+ // Check that script context is included into the event message. |
+ var json = event_data.toJSONProtocol(); |
+ var msg = eval('(' + json + ')'); |
+ assertTrue('context' in msg.body.script); |
} |
} catch (e) { |
exception = e |