mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
node:crypto: implement hkdf and hkdfSync (#18312)
This commit is contained in:
@@ -27,9 +27,9 @@ pub export fn NodeModuleModule__findPath(
|
||||
const found = if (paths_maybe) |paths| found: {
|
||||
var iter = paths.iterator(global);
|
||||
while (iter.next()) |path| {
|
||||
const cur_path = bun.String.tryFromJS(path, global) orelse {
|
||||
if (global.hasException()) return .zero;
|
||||
continue;
|
||||
const cur_path = bun.String.fromJS(path, global) catch |err| switch (err) {
|
||||
error.JSError => return .zero,
|
||||
error.OutOfMemory => return global.throwOutOfMemoryValue(),
|
||||
};
|
||||
defer cur_path.deref();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user