Author: [email protected]
Date: Tue May 12 02:08:01 2009
New Revision: 1911
Modified:
branches/bleeding_edge/src/debug-delay.js
branches/bleeding_edge/test/mjsunit/debug-compile-event.js
Log:
Script context information is included in before/afterCompile events.
Review URL: http://codereview.chromium.org/115128
Modified: branches/bleeding_edge/src/debug-delay.js
==============================================================================
--- branches/bleeding_edge/src/debug-delay.js (original)
+++ branches/bleeding_edge/src/debug-delay.js Tue May 12 02:08:01 2009
@@ -984,7 +984,8 @@
o.event = "afterCompile";
}
o.body = {};
- o.body.script = MakeScriptObject_(this.script_, true);
+ o.body.script = this.script_;
+ o.setOption('includeSource', true);
return o.toJSONProtocol();
}
Modified: branches/bleeding_edge/test/mjsunit/debug-compile-event.js
==============================================================================
--- branches/bleeding_edge/test/mjsunit/debug-compile-event.js (original)
+++ branches/bleeding_edge/test/mjsunit/debug-compile-event.js Tue May 12
02:08:01 2009
@@ -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
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---