mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix construction of destination node (#6)
* Fix comparison of audiocontexts * Fix comparison * Fix destination node construction
This commit is contained in:
parent
6ac4b4b8e0
commit
723f1b0582
2 changed files with 14 additions and 13 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue