nl_tokens: Convert a value to its debugger protocol representation .
pl_tokens: function ValueToProtocolValue_ ( value , mirror_serializer ) { // Format the value based on its type. var json ; switch ( typeof value ) { case 'object' : if ( <mask> instanceof Mirror ) { json = mirror_serializer . serializeValue ( value ) ; } else if ( IS_ARRAY ( value ) ) { json = ArrayToProtocolArray_ ( value , mirror_serializer ) ; } else { json = ObjectToProtocolObject_ ( value , mirror_serializer ) ; } break ; case 'boolean' : case 'string' : case 'number' : json = value ; break ; default : json = null ; } return json ; }