File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,8 @@ Future<RenderResult> _renderAsync(RenderOptions options) async {
81
81
var file = options.file == null ? null : p.absolute (options.file);
82
82
CompileResult result;
83
83
if (isMainThread == true ) {
84
- var worker = Worker (p.current, WorkerOptions (workerData: {options}));
84
+ print (p.current);
85
+ final worker = Worker (p.current, WorkerOptions (workerData: {options}));
85
86
worker.on ('message' , (CompileResult msg) => result = msg);
86
87
worker.on ('error' , (JSError error) {
87
88
jsThrow (_wrapException (error));
@@ -111,7 +112,7 @@ Future<RenderResult> _renderAsync(RenderOptions options) async {
111
112
} else {
112
113
throw ArgumentError ("Either options.data or options.file must be set." );
113
114
}
114
- ParentPort .postMessage (result, PortOptions ());
115
+ parentPort .postMessage (result, PortOptions ());
115
116
}
116
117
117
118
return _newRenderResult (options, result, start);
You can’t perform that action at this time.
0 commit comments