Introduce Finite<T: Float> for restricted values defined in WebIDL.

This commit is contained in:
Tetsuharu OHZEKI 2015-03-04 20:28:57 +09:00
parent 2bf2c0020b
commit f7fd34c0aa
5 changed files with 114 additions and 30 deletions

View file

@ -81,9 +81,9 @@ builtinNames = {
IDLType.Tags.uint32: 'u32',
IDLType.Tags.uint64: 'u64',
IDLType.Tags.unrestricted_float: 'f32',
IDLType.Tags.float: 'f32',
IDLType.Tags.float: 'Finite<f32>',
IDLType.Tags.unrestricted_double: 'f64',
IDLType.Tags.double: 'f64'
IDLType.Tags.double: 'Finite<f64>'
}
numericTags = [
@ -4688,6 +4688,7 @@ class CGBindingRoot(CGThing):
'dom::bindings::proxyhandler',
'dom::bindings::proxyhandler::{fill_property_descriptor, get_expando_object}',
'dom::bindings::proxyhandler::{get_property_descriptor}',
'dom::bindings::num::Finite',
'dom::bindings::str::ByteString',
'dom::bindings::str::USVString',
'libc',