thefrontside / effection

Structured concurrency and effects for JavaScript
https://frontside.com/effection
MIT License
592 stars 25 forks source link

SyntaxError: Unexpected strict mode reserved word in sample code of the documentation #923

Open geohuz opened 1 day ago

geohuz commented 1 day ago
import { call } from 'effection';

yield* call(async function() {
  return "hello world";
});

when run it with nodejs (v20.10.0) I got the error:

yield* call(async function() {
^^^^^

SyntaxError: Unexpected strict mode reserved word