Skip to content

Commit ec99784

Browse files
committed
Fix naming of portOptions
1 parent 7a5c0f5 commit ec99784

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/src/node.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ Future<RenderResult> _renderAsync(RenderOptions options) async {
8181
var file = options.file == null ? null : p.absolute(options.file);
8282
CompileResult result;
8383
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}));
8586
worker.on('message', (CompileResult msg) => result = msg);
8687
worker.on('error', (JSError error) {
8788
jsThrow(_wrapException(error));
@@ -111,7 +112,7 @@ Future<RenderResult> _renderAsync(RenderOptions options) async {
111112
} else {
112113
throw ArgumentError("Either options.data or options.file must be set.");
113114
}
114-
ParentPort.postMessage(result, PortOptions());
115+
parentPort.postMessage(result, PortOptions());
115116
}
116117

117118
return _newRenderResult(options, result, start);

0 commit comments

Comments
 (0)