Skip to content

Commit 25293df

Browse files
author
Guy Bedford
authored
deprecate: remove experimental --enable-pbl flag (#908)
1 parent 2728141 commit 25293df

File tree

5 files changed

+5
-16
lines changed

5 files changed

+5
-16
lines changed

integration-tests/js-compute/fixtures/app/fastly.toml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name = "js-test-app"
99
service_id = ""
1010

1111
[scripts]
12-
build = "node ../../../../js-compute-runtime-cli.js --enable-pbl --enable-experimental-high-resolution-time-methods src/index.js"
12+
build = "node ../../../../js-compute-runtime-cli.js --enable-experimental-high-resolution-time-methods src/index.js"
1313

1414
[local_server]
1515

js-compute-runtime-cli.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { printHelp } from "./src/printHelp.js";
66
import { addSdkMetadataField } from "./src/addSdkMetadataField.js";
77

88
const {
9-
enablePBL,
109
enableAOT,
1110
aotCache,
1211
enableExperimentalHighResolutionTimeMethods,
@@ -37,10 +36,9 @@ if (version) {
3736
output,
3837
wasmEngine,
3938
enableExperimentalHighResolutionTimeMethods,
40-
enablePBL,
4139
enableExperimentalTopLevelAwait,
4240
enableAOT,
4341
aotCache,
4442
);
45-
await addSdkMetadataField(output, enablePBL);
43+
await addSdkMetadataField(output, enableAOT);
4644
}

src/addSdkMetadataField.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import { dirname, join } from "node:path";
44
import { fileURLToPath } from "node:url";
55
const __dirname = dirname(fileURLToPath(import.meta.url));
66

7-
export async function addSdkMetadataField(wasmPath, usingPBL) {
7+
export async function addSdkMetadataField(wasmPath, usingAOT) {
88
const packageJson = await readFile(join(__dirname, "../package.json"), {
99
encoding: "utf-8",
1010
});
1111

1212
let { name, version } = JSON.parse(packageJson);
1313

14-
if (usingPBL) {
15-
name += ' (StarlingMonkey with PBL)'
14+
if (usingAOT) {
15+
name += ' (StarlingMonkey with Weval)'
1616
} else {
1717
name += ' (StarlingMonkey)'
1818
}

src/compileApplicationToWasm.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export async function compileApplicationToWasm(
1919
output,
2020
wasmEngine,
2121
enableExperimentalHighResolutionTimeMethods = false,
22-
enablePBL = false,
2322
enableExperimentalTopLevelAwait = false,
2423
enableAOT = false,
2524
aotCache = '',
@@ -139,7 +138,6 @@ export async function compileApplicationToWasm(
139138
env: {
140139
ENABLE_EXPERIMENTAL_HIGH_RESOLUTION_TIME_METHODS:
141140
enableExperimentalHighResolutionTimeMethods ? "1" : "0",
142-
ENABLE_PBL: enablePBL ? "1" : "0",
143141
...process.env,
144142
},
145143
}
@@ -169,7 +167,6 @@ export async function compileApplicationToWasm(
169167
env: {
170168
ENABLE_EXPERIMENTAL_HIGH_RESOLUTION_TIME_METHODS:
171169
enableExperimentalHighResolutionTimeMethods ? "1" : "0",
172-
ENABLE_PBL: enablePBL ? "1" : "0",
173170
...process.env,
174171
},
175172
}

src/parseInputs.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export async function parseInputs(cliInputs) {
88

99
let enableExperimentalHighResolutionTimeMethods = false;
1010
let enableExperimentalTopLevelAwait = false;
11-
let enablePBL = false;
1211
let enableAOT = false;
1312
let customEngineSet = false;
1413
let wasmEngine = join(__dirname, "../fastly.wasm");
@@ -33,10 +32,6 @@ export async function parseInputs(cliInputs) {
3332
enableExperimentalTopLevelAwait = true;
3433
break;
3534
}
36-
case "--enable-pbl": {
37-
enablePBL = true;
38-
break;
39-
}
4035
case "--enable-experimental-aot": {
4136
enableAOT = true;
4237
break;
@@ -132,7 +127,6 @@ export async function parseInputs(cliInputs) {
132127
return {
133128
enableExperimentalHighResolutionTimeMethods,
134129
enableExperimentalTopLevelAwait,
135-
enablePBL,
136130
enableAOT,
137131
aotCache,
138132
input,

0 commit comments

Comments
 (0)