Index: test/mjsunit/mirror-function.js |
=================================================================== |
--- test/mjsunit/mirror-function.js (revision 1956) |
+++ test/mjsunit/mirror-function.js (working copy) |
@@ -44,8 +44,9 @@ |
// Create mirror and JSON representation. |
var mirror = debug.MakeMirror(f); |
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); |