Fix construction of destination node (#6)

* Fix comparison of audiocontexts

* Fix comparison

* Fix destination node construction
This commit is contained in:
Manish Goregaokar 2018-07-10 00:34:11 -07:00 committed by Fernando Jiménez Moreno
parent 6ac4b4b8e0
commit 723f1b0582
2 changed files with 14 additions and 13 deletions

View file

@ -69,6 +69,7 @@ impl AudioNodeMethods for AudioNode {
destination: &AudioNode,
output: u32,
input: u32) -> Fallible<DomRoot<AudioNode>> {
if self.context != destination.context {
return Err(Error::InvalidAccess);
}