Index: test/mjsunit/mirror-string.js |
=================================================================== |
--- test/mjsunit/mirror-string.js (revision 1079) |
+++ test/mjsunit/mirror-string.js (working copy) |
@@ -33,7 +33,8 @@ |
function testStringMirror(s) { |
// Create mirror and JSON representation. |
var mirror = debug.MakeMirror(s); |
- var json = mirror.toJSONProtocol(true); |
+ var serializer = debug.MakeMirrorSerializer(); |
+ var json = serializer.serializeValue(mirror); |
// Check the mirror hierachy. |
assertTrue(mirror instanceof debug.Mirror); |