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