Skip to content

dart:html WorkerGlobalScope missing property console #33419

Open
@normcf

Description

Using dart_2.0.0-dev.60.0-1_amd64.deb on Ubuntu 18.04 LTS

Trying to use the class WorkerGlobalScope to get to the console in code meant to executed in a web worker,

void main(List<String> args) {
  WorkerGlobalScope.console.log("Enter worker console");
  ...
}

but the dev compiler gives:
[error] The getter 'console' isn't defined for the class 'WorkerGlobalScope'.

Metadata

Assignees

Labels

area-webUse area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.library-htmlweb-librariesIssues impacting dart:html, etc., libraries

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions