There was an error while loading. Please reload this page.
1 parent c96c567 commit bceb281Copy full SHA for bceb281
lib/javascript_runtime.dart
@@ -135,7 +135,7 @@ abstract class JavascriptRuntime {
135
//print('SET TIMEOUT EVAL RESULT: $setTImeoutResult');
136
onMessage('SetTimeout', (dynamic args) {
137
try {
138
- int duration = args['timeout'];
+ int duration = args['timeout'] ?? 0;
139
String idx = args['timeoutIndex'];
140
141
Timer(Duration(milliseconds: duration), () {
0 commit comments