Skip to content

Commit

Permalink
Merge pull request #1005 from fastly/update-starlingmonkey
Browse files Browse the repository at this point in the history
deps: update to latest StarlingMonkey
  • Loading branch information
cfallin authored Oct 11, 2024
2 parents 1d9f91a + cc9b269 commit c5986c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions runtime/fastly/builtins/fastly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,6 @@ bool install(api::Engine *engine) {
bool ENABLE_EXPERIMENTAL_HIGH_RESOLUTION_TIME_METHODS =
std::string(std::getenv("ENABLE_EXPERIMENTAL_HIGH_RESOLUTION_TIME_METHODS")) == "1";

engine->enable_module_mode(std::string(std::getenv("ENABLE_MODULE_MODE")) == "1");

JS::SetOutOfMemoryCallback(engine->cx(), oom_callback, nullptr);

JS::RootedObject fastly(engine->cx(), JS_NewPlainObject(engine->cx()));
Expand Down
6 changes: 2 additions & 4 deletions src/compileApplicationToWasm.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,13 @@ export async function compileApplicationToWasm(
],
{
stdio: [null, process.stdout, process.stderr],
input: maybeWindowsPath(wizerInput),
input: `${maybeWindowsPath(wizerInput)}${enableExperimentalTopLevelAwait ? '' : ' --legacy-script'}`,
shell: true,
encoding: 'utf-8',
env: {
...process.env,
ENABLE_EXPERIMENTAL_HIGH_RESOLUTION_TIME_METHODS:
enableExperimentalHighResolutionTimeMethods ? '1' : '0',
ENABLE_MODULE_MODE: enableExperimentalTopLevelAwait ? '1' : '0',
},
},
);
Expand All @@ -161,14 +160,13 @@ export async function compileApplicationToWasm(
],
{
stdio: [null, process.stdout, process.stderr],
input: maybeWindowsPath(wizerInput),
input: `${maybeWindowsPath(wizerInput)}${enableExperimentalTopLevelAwait ? '' : ' --legacy-script'}`,
shell: true,
encoding: 'utf-8',
env: {
...process.env,
ENABLE_EXPERIMENTAL_HIGH_RESOLUTION_TIME_METHODS:
enableExperimentalHighResolutionTimeMethods ? '1' : '0',
ENABLE_MODULE_MODE: enableExperimentalTopLevelAwait ? '1' : '0',
},
},
);
Expand Down

0 comments on commit c5986c2

Please sign in to comment.