Skip to content

Async functions are stringified #113

@nichoth

Description

@nichoth

Bug report

Link to a working example, because we pass a function that is synchronous: https://jsfiddle.net/k3prLfcd/

Passing an async function results in the function being stringified. It should be usable as a function. Link to example demonstrating the issue: https://jsfiddle.net/ope5y79f/1/

Steps To Reproduce

Steps to reproduce the behavior:

  1. Go to https://jsfiddle.net/ope5y79f/1/
  2. Click on the button
  3. See error

Expected behavior
Should be able to call async methods

Actual behavior
Async functions are stringified

Screenshots

image

Desktop (please complete the following information):

  • Browser chrome
  • Version 117.0.5938.149 (Official Build) (arm64)

Metadata

Metadata

Assignees

Labels

BUGSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions