Skip to content

Commit

Permalink
Use RuntimeConfig for microtasks
Browse files Browse the repository at this point in the history
Summary:
Changelog:
[general][change] - Use RuntimeConfig instead of VM Experiment Flag to set up the micro task queue.

Reviewed By: neildhar

Differential Revision: D37353947

fbshipit-source-id: 5c8f35c0a79d70cb0d234e881e55058cffb44ac8
  • Loading branch information
fbmal7 authored and facebook-github-bot committed Jul 14, 2022
1 parent 5665a77 commit 753038c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReactCommon/react/bridging/tests/BridgingTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class BridgingTest : public ::testing::Test {
runtime(hermes::makeHermesRuntime(
::hermes::vm::RuntimeConfig::Builder()
// Make promises work with Hermes microtasks.
.withVMExperimentFlags(1 << 14 /* JobQueue */)
.withMicrotaskQueue(true)
.build())),
rt(*runtime) {}

Expand Down

0 comments on commit 753038c

Please sign in to comment.