public static void WriteConsole(EcmaValue value) { if (defaultConsoleWriter == null) { defaultConsoleWriter = new InspectorSingleLineSerializer(Console.Out); } defaultConsoleWriter.Serialize(value); }
protected override void WritePropertyValue(EcmaPropertyKey propertyKey, EcmaPropertyDescriptor descriptor) { if (descriptor.Value.Type != EcmaValueType.Object) { base.WritePropertyValue(propertyKey, descriptor); } else { RuntimeObject obj = descriptor.Value.ToObject(); if (stack.Count == maxDepth || stack.Contains(obj)) { WriteToken(InspectorTokenType.UnexpandedAccessor); } else if (propertyKey == "__proto__") { singleLine.Serialize(descriptor.Value); } else { base.WritePropertyValue(propertyKey, descriptor); } } }