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 {
8686 var file = options.file == null ? null : p.absolute (options.file);
8787 CompileResult result;
8888 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}));
9091 worker.on ('message' , (CompileResult msg) => result = msg);
9192 worker.on ('error' , (JSError error) {
9293 jsThrow (_wrapException (error));
@@ -116,7 +117,7 @@ Future<RenderResult> _renderAsync(RenderOptions options) async {
116117 } else {
117118 throw ArgumentError ("Either options.data or options.file must be set." );
118119 }
119- ParentPort .postMessage (result, PortOptions ());
120+ parentPort .postMessage (result, PortOptions ());
120121 }
121122
122123 return _newRenderResult (options, result, start);
You can’t perform that action at this time.
0 commit comments