Skip to content

[wasm] avoid eval, design better API for InvokeJS #61287

Closed
@pavelsavara

Description

@pavelsavara

After change #61212 Rollup started producing warning about eval.

(!) Use of eval is strongly discouraged
  https://rollupjs.org/guide/en/#avoiding-eval
  method-calls.ts

We could suppress it globally, but it's not ideal.

{
  onwarn(warning, warn) {
    if (warning.code === 'EVAL') return
    warn(warning)
  }
}

As @lewing suggested, we should consider deprecating the method, since it's only internal API.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions