Skip to content

fix(napi): napi_create_async_work incorrect argument (napi-rs#1392) - #1396

Merged
Brooooooklyn merged 1 commit into
napi-rs:mainfrom
patrickpilch:async_work_napi_value_arg
Dec 16, 2022
Merged

Brooooooklyn merged 1 commit into
napi-rs:mainfrom
patrickpilch:async_work_napi_value_arg

Conversation

@patrickpilch

Copy link
Copy Markdown
Contributor

The third argument to napi_create_async_work (async_resource_name) should be a napi_value that corresponds to a null-terminated utf-8 string.

This resolves errors running Next.js with GraalVM.

oracle/graal#5582
oracle/graal#5581

@patrickpilch
patrickpilch force-pushed the async_work_napi_value_arg branch from 7159873 to 3b85d55 Compare December 16, 2022 02:35
The third argument to `napi_create_async_work` (async_resource_name)
should be a `napi_value` that corresponds to a null-terminated utf-8
string.

This resolves errors running Next.js with GraalVM.

oracle/graal#5582
oracle/graal#5581
@patrickpilch
patrickpilch force-pushed the async_work_napi_value_arg branch from 3b85d55 to fd8de90 Compare December 16, 2022 02:57

@Brooooooklyn Brooooooklyn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants