Index: tools/dom/templates/html/impl/impl_ScriptProcessorNode.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_ScriptProcessorNode.darttemplate b/tools/dom/templates/html/impl/impl_ScriptProcessorNode.darttemplate |
index d6f813f31415697fc93639158cfad50163e95855..2c9a2eb173c97a6b54fd4861e6f7b4168b2dd701 100644 |
--- a/tools/dom/templates/html/impl/impl_ScriptProcessorNode.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_ScriptProcessorNode.darttemplate |
@@ -16,8 +16,8 @@ $(ANNOTATIONS)class $CLASSNAME$EXTENDS$NATIVESPEC { |
*/ |
Stream<AudioProcessingEvent> get onAudioProcess { |
if (_eventStream == null) { |
- var controller = new StreamController(); |
- var callback = (audioData) { |
+ var controller = new StreamController(sync: true); |
+ var callback = (audioData) { |
if (controller.hasListener) { |
// This stream is a strange combination of broadcast and single |
// subscriber streams. We only allow one listener, but if there is |