diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-05-03 14:30:02 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-05-05 11:29:46 +0200 |
commit | 455465f3c62a3e7a545920c6284589f0661317ac (patch) | |
tree | e83a42d6739ba481bc3498396e7ede353d4af3b4 /src/components/script/script_task.rs | |
parent | e53c768b9ef765700d40fc153b295d7630f30baf (diff) | |
download | servo-455465f3c62a3e7a545920c6284589f0661317ac.tar.gz servo-455465f3c62a3e7a545920c6284589f0661317ac.zip |
Move the handling of default values in getJSToNativeConversionTemplate into handleOptional.
This is a first step towards moving responsibility for default values into the
caller, which should improve their code (in particular for the dictionary
codegen.
This also introduces a Dictionary::empty function, whose implementation is a
hack. The implementation will be improved once its codegen has access to the
raw default values.
Besides dictionaries, this commit does not change the generated code.
Diffstat (limited to 'src/components/script/script_task.rs')
0 files changed, 0 insertions, 0 deletions