mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Previously, the `java` command would execute on the next tick and update the `javaOptions` array, which could occur prior to the invocation of the Closure Compiler on the current tick. This has now been refactored into a separate `getJavaOptions` function, which passes the `javaOptions` array to a callback. `getJavaOptions` is defined lazily; after the first invocation, the options are cached and passed to all subsequent callbacks. The callbacks are invoked on the next tick for compatibility with `exec`. Former-commit-id: 89ca63c9edb3df3d4fcbbaa64e06075495febfd0