mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-18 15:31:25 +00:00
Enable DOMTimeStamp as UnsignedLongLong
This is apparently how webidl defines it!
This commit is contained in:
@ -287,7 +287,10 @@ impl<'a> ToIdlType<'a> for AttributedType<'a> {
|
|||||||
|
|
||||||
impl<'a> ToIdlType<'a> for Identifier<'a> {
|
impl<'a> ToIdlType<'a> for Identifier<'a> {
|
||||||
fn to_idl_type(&self, record: &FirstPassRecord<'a>) -> Option<IdlType<'a>> {
|
fn to_idl_type(&self, record: &FirstPassRecord<'a>) -> Option<IdlType<'a>> {
|
||||||
if let Some(idl_type) = record.typedefs.get(&self.0) {
|
if self.0 == "DOMTimeStamp" {
|
||||||
|
// https://heycam.github.io/webidl/#DOMTimeStamp
|
||||||
|
Some(IdlType::UnsignedLongLong)
|
||||||
|
} else if let Some(idl_type) = record.typedefs.get(&self.0) {
|
||||||
idl_type.to_idl_type(record)
|
idl_type.to_idl_type(record)
|
||||||
} else if record.interfaces.contains_key(self.0) {
|
} else if record.interfaces.contains_key(self.0) {
|
||||||
Some(IdlType::Interface(self.0))
|
Some(IdlType::Interface(self.0))
|
||||||
|
Reference in New Issue
Block a user