Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Jan 4, 2025
1 parent 46a8a87 commit 965e0dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/runtime/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ pub(crate) fn initialize_deno_core_ops_bindings<'s>(
break;
}

let tmpl = if let Some(_) = decl.constructor {
let tmpl = if decl.constructor.is_some() {
let constructor_ctx = &op_ctxs[index];

let tmpl = op_ctx_template(scope, constructor_ctx);
Expand Down
2 changes: 2 additions & 0 deletions testing/ops.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ export class TestObjectWrap {
with_RENAME(): void;
withAsyncFn(ms: number): Promise<void>;
}

export class TestEnumWrap {}

0 comments on commit 965e0dd

Please sign in to comment.