Lines Matching refs:Mirror
29 // Test the mirror object for regular error objects
44 // Create mirror and JSON representation.
45 var mirror = debug.MakeMirror(e);
47 var json = JSON.stringify(serializer.serializeValue(mirror));
51 // Check the mirror hierachy.
52 assertTrue(mirror instanceof debug.Mirror);
53 assertTrue(mirror instanceof debug.ValueMirror);
54 assertTrue(mirror instanceof debug.ObjectMirror);
55 assertTrue(mirror instanceof debug.ErrorMirror);
57 // Check the mirror properties.
58 assertTrue(mirror.isError());
59 assertEquals('error', mirror.type());
60 assertFalse(mirror.isPrimitive());
61 assertEquals(mirror.message(), e.message, 'source');