Index: test/mjsunit/mirror-array.js |
=================================================================== |
--- test/mjsunit/mirror-array.js (revision 1956) |
+++ test/mjsunit/mirror-array.js (working copy) |
@@ -44,8 +44,9 @@ |
// Create mirror and JSON representation. |
var mirror = debug.MakeMirror(a); |
var serializer = debug.MakeMirrorSerializer(); |
- var json = serializer.serializeValue(mirror); |
- var refs = new MirrorRefCache(serializer.serializeReferencedObjects()); |
+ var json = JSON.stringify(serializer.serializeValue(mirror)); |
+ var refs = new MirrorRefCache( |
+ JSON.stringify(serializer.serializeReferencedObjects())); |
// Check the mirror hierachy. |
assertTrue(mirror instanceof debug.Mirror, 'Unexpected mirror hierachy'); |