Skip to content

Commit 7f96707

Browse files
committed
typo
1 parent f7e9939 commit 7f96707

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

worker-build/src/js/shim.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function handleMaybeCritical(e) {
3737
}
3838
}
3939

40-
class EntryPoint extends WorkerEntrypoint {}
40+
class Entrypoint extends WorkerEntrypoint {}
4141

4242
$HANDLERS
4343

@@ -108,4 +108,4 @@ const classProxyHooks = {
108108
}
109109
};
110110

111-
export default new Proxy(EntryPoint, classProxyHooks);
111+
export default new Proxy(Entrypoint, classProxyHooks);

worker-build/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ fn generate_handlers() -> Result<String> {
152152
for func_name in func_names {
153153
if func_name == "fetch" {
154154
handlers += &format!(
155-
"EntryPoint.prototype.fetch = async function fetch(request) {{
155+
"Entrypoint.prototype.fetch = async function fetch(request) {{
156156
try {{
157157
let response = exports.fetch(request, this.env, this.ctx);
158158
{}
@@ -169,7 +169,7 @@ fn generate_handlers() -> Result<String> {
169169
}
170170
)
171171
} else {
172-
handlers += &format!("EntryPoint.prototype.{func_name} = exports.{func_name};\n")
172+
handlers += &format!("Entrypoint.prototype.{func_name} = exports.{func_name};\n")
173173
}
174174
}
175175

0 commit comments

Comments
 (0)