Index: test/mjsunit/mirror-script.js |
=================================================================== |
--- test/mjsunit/mirror-script.js (revision 1079) |
+++ test/mjsunit/mirror-script.js (working copy) |
@@ -31,8 +31,8 @@ |
function testScriptMirror(f, file_name, file_lines, script_type) { |
// Create mirror and JSON representation. |
var mirror = debug.MakeMirror(f).script(); |
- var json = mirror.toJSONProtocol(true); |
- print(json); |
+ var serializer = debug.MakeMirrorSerializer(); |
+ var json = serializer.serializeValue(mirror); |
// Check the mirror hierachy. |
assertTrue(mirror instanceof debug.Mirror); |