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 @@ -86,7 +86,8 @@ Future<RenderResult> _renderAsync(RenderOptions options) async {
86
86
var file = options.file == null ? null : p.absolute (options.file);
87
87
CompileResult result;
88
88
if (isMainThread == true ) {
89
- var worker = Worker (p.current, WorkerOptions (workerData: {options}));
89
+ print (p.current);
90
+ final worker = Worker (p.current, WorkerOptions (workerData: {options}));
90
91
worker.on ('message' , (CompileResult msg) => result = msg);
91
92
worker.on ('error' , (JSError error) {
92
93
jsThrow (_wrapException (error));
@@ -116,7 +117,7 @@ Future<RenderResult> _renderAsync(RenderOptions options) async {
116
117
} else {
117
118
throw ArgumentError ("Either options.data or options.file must be set." );
118
119
}
119
- ParentPort .postMessage (result, PortOptions ());
120
+ parentPort .postMessage (result, PortOptions ());
120
121
}
121
122
122
123
return _newRenderResult (options, result, start);
You can’t perform that action at this time.
0 commit comments