Skip to content

Commit 9e47649

Browse files
author
Guy Bedford
authored
feat: module mode (#1021)
1 parent 9ba14cd commit 9e47649

File tree

17 files changed

+153
-92
lines changed

17 files changed

+153
-92
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ jobs:
379379
env:
380380
FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}
381381

382-
- name: Run TLA Tests
383-
run: SUFFIX_STRING=${{matrix.profile}} node integration-tests/js-compute/test.js --tla ${{ matrix.platform == 'viceroy' && '--local' || '' }} ${{ matrix.profile == 'weval' && '--aot' || '' }}
382+
- name: Run Module Mode Tests
383+
run: SUFFIX_STRING=${{matrix.profile}} node integration-tests/js-compute/test.js --module-mode ${{ matrix.platform == 'viceroy' && '--local' || '' }} ${{ matrix.profile == 'weval' && '--aot' || '' }}
384384
env:
385385
FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}
386386

@@ -442,7 +442,7 @@ jobs:
442442
env:
443443
FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}
444444

445-
- name: Run TLA Tests
446-
run: SUFFIX_STRING=debug node integration-tests/js-compute/test.js --tla --debug-build ${{ matrix.platform == 'viceroy' && '--local' || '' }}
445+
- name: Run Module Mode Tests
446+
run: SUFFIX_STRING=debug node integration-tests/js-compute/test.js --module-mode --debug-build ${{ matrix.platform == 'viceroy' && '--local' || '' }}
447447
env:
448448
FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}

integration-tests/cli/help.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ test('--help should return help on stdout and zero exit code', async function (t
3030
'-V, --version Prints version information',
3131
'OPTIONS:',
3232
'--engine-wasm <engine-wasm> The JS engine Wasm file path',
33+
'--module-mode [experimental] Run all sources as native modules,',
34+
'with full error stack support.',
3335
'--enable-experimental-aot Enable experimental AOT compilation for performance',
3436
'--enable-experimental-high-resolution-time-methods Enable experimental high-resolution fastly.now() method',
3537
'--enable-experimental-top-level-await Enable experimental top level await',
@@ -57,6 +59,8 @@ test('-h should return help on stdout and zero exit code', async function (t) {
5759
'-V, --version Prints version information',
5860
'OPTIONS:',
5961
'--engine-wasm <engine-wasm> The JS engine Wasm file path',
62+
'--module-mode [experimental] Run all sources as native modules,',
63+
'with full error stack support.',
6064
'--enable-experimental-aot Enable experimental AOT compilation for performance',
6165
'--enable-experimental-high-resolution-time-methods Enable experimental high-resolution fastly.now() method',
6266
'--enable-experimental-top-level-await Enable experimental top level await',

0 commit comments

Comments
 (0)