|
|
| version 1.45, 2016/07/20 14:51:16 | version 1.46, 2016/07/20 14:53:55 |
|---|---|
| Line 239 static void _fields(Request& r, MethodPa | Line 239 static void _fields(Request& r, MethodPa |
| } | } |
| static void _fields_reference(Request& r, MethodParams& params) { | static void _fields_reference(Request& r, MethodParams& params) { |
| Value& o=params.as_no_junction(0, "param must be object or class, not junction"); | Value& o=params.as_no_junction(0, "param must be object or hash, not junction"); |
| if(HashStringValue* fields=o.get_fields_reference()) | if(HashStringValue* fields=o.get_fields_reference()) |
| r.write_no_lang(*new VHashReference(*fields)); | r.write_no_lang(*new VHashReference(*fields)); |
| else | else |
| throw Exception(PARSER_RUNTIME, 0, "param must be object or class"); | throw Exception(PARSER_RUNTIME, 0, "param must be object or hash"); |
| } | } |
| static void _field(Request& r, MethodParams& params) { | static void _field(Request& r, MethodParams& params) { |