ember-fastboot / ember-fastboot/ember-cli-fastboot

[queueMicrotask] is missing in fastboot sandbox

Open
#936 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
850
Forks
161
Avg merge
17h 45m
Merged PRs (30d)
19

Description

Recently I've upgraded the package `@apollo/client` to version `3.9.10` in my Ember app and this version is using the global function [queueMicrotask](https://developer.mozilla.org/en-US/docs/Web/API/queueMicrotask) which is not available in the default config of fastboot sandbox here:

https://github.com/ember-fastboot/ember-cli-fastboot/blob/1e6ed038608305c6c0c6008e07e302e6a1b5ce16/packages/fastboot/src/sandbox.js#L24

When queueMicrotask is called, fastboot crashes because its is not defined.

I see `setTimeout` being set, but not `queueMicrotask`. Would it make sense to add it to the default sandbox?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.