Skip to content

Commit

Permalink
test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeChampion committed Nov 21, 2024
1 parent 6c15a7e commit a4ecd37
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 18 deletions.
1 change: 0 additions & 1 deletion pkg/csp_nonce_html_transformer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ export class HTMLRewriter {
*/
write(chunk: Uint8Array): void;
end(): void;
readonly asyncifyStackPtr: number;
}
export class TextChunk {
free(): void;
Expand Down
9 changes: 0 additions & 9 deletions pkg/csp_nonce_html_transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1051,15 +1051,6 @@ export class HTMLRewriter {
throw takeFromExternrefTable0(ret[0]);
}
}
/**
* @returns {number}
*/
get asyncifyStackPtr() {
if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
_assertNum(this.__wbg_ptr);
const ret = wasm.htmlrewriter_asyncify_stack_ptr(this.__wbg_ptr);
return ret >>> 0;
}
}

const TextChunkFinalization = (typeof FinalizationRegistry === "undefined")
Expand Down
Binary file modified pkg/csp_nonce_html_transformer_bg.wasm
Binary file not shown.
1 change: 0 additions & 1 deletion pkg/csp_nonce_html_transformer_bg.wasm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export function htmlrewriter_on(
export function htmlrewriter_onDocument(a: number, b: number): Array;
export function htmlrewriter_write(a: number, b: number, c: number): Array;
export function htmlrewriter_end(a: number): Array;
export function htmlrewriter_asyncify_stack_ptr(a: number): number;
export function __wbg_endtag_free(a: number, b: number): void;
export function endtag_name(a: number): Array;
export function endtag_set_name(a: number, b: number, c: number): Array;
Expand Down
7 changes: 0 additions & 7 deletions src/html_rewriter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ pub struct HTMLRewriter {
output_sink: Option<JsOutputSink>,
inner: Option<NativeHTMLRewriter<'static, JsOutputSink>>,
inner_constructed: bool,
asyncify_stack: Vec<u8>,
enable_esi_tags: bool,
}

Expand All @@ -65,7 +64,6 @@ impl HTMLRewriter {
pub fn new(output_sink: &JsFunction, options: Option<HTMLRewriterOptions>) -> Self {
HTMLRewriter {
output_sink: Some(JsOutputSink::new(output_sink)),
asyncify_stack: vec![0; 1024],
enable_esi_tags: options.and_then(|o| o.enable_esi_tags()).unwrap_or(false),
..Self::default()
}
Expand Down Expand Up @@ -144,9 +142,4 @@ impl HTMLRewriter {
.end()
.map_err(rewriting_error_to_js)
}

#[wasm_bindgen(getter=asyncifyStackPtr)]
pub fn asyncify_stack_ptr(&mut self) -> *mut u8 {
self.asyncify_stack.as_mut_ptr()
}
}

0 comments on commit a4ecd37

Please sign in to comment.