feat(core): allow specifying name and dependencies of an Extension (#17301)

This commit is contained in:
Leo Kettmeir 2023-01-08 23:48:46 +01:00 committed by GitHub
parent 2be1282be4
commit c41d4ff90e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 158 additions and 80 deletions

View file

@ -2805,7 +2805,7 @@ fn js_runtime(performance: Arc<Performance>) -> JsRuntime {
}
fn init_extension(performance: Arc<Performance>) -> Extension {
Extension::builder()
Extension::builder("deno_tsc")
.ops(vec![
op_exists::decl(),
op_is_cancelled::decl(),