Skip to content

Commit 753038c

Browse files
Michael Anthony Leonfacebook-github-bot
authored andcommitted
Use RuntimeConfig for microtasks
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
1 parent 5665a77 commit 753038c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactCommon/react/bridging/tests/BridgingTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class BridgingTest : public ::testing::Test {
3838
runtime(hermes::makeHermesRuntime(
3939
::hermes::vm::RuntimeConfig::Builder()
4040
// Make promises work with Hermes microtasks.
41-
.withVMExperimentFlags(1 << 14 /* JobQueue */)
41+
.withMicrotaskQueue(true)
4242
.build())),
4343
rt(*runtime) {}
4444

0 commit comments

Comments
 (0)