mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
refactor(core): don't use Result in ExtensionBuilder::state (#18066)
There's no point for this API to expect result. If something fails it should result in a panic during build time to signal to embedder that setup is wrong.
This commit is contained in:
parent
0e3affcd5b
commit
b32a6f8ad2
33 changed files with 7 additions and 45 deletions
|
@ -121,7 +121,6 @@ pub fn init<P: TimersPermission + 'static>(
|
|||
state.put(Location(location));
|
||||
}
|
||||
state.put(StartTime::now());
|
||||
Ok(())
|
||||
})
|
||||
.build()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue