@nomicfoundation/edr 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomicfoundation/edr",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "devDependencies": {
5
5
  "@napi-rs/cli": "^2.18.3",
6
6
  "@types/chai": "^4.2.0",
@@ -52,13 +52,13 @@
52
52
  "repository": "NomicFoundation/edr.git",
53
53
  "types": "index.d.ts",
54
54
  "dependencies": {
55
- "@nomicfoundation/edr-darwin-arm64": "0.6.0",
56
- "@nomicfoundation/edr-darwin-x64": "0.6.0",
57
- "@nomicfoundation/edr-linux-arm64-gnu": "0.6.0",
58
- "@nomicfoundation/edr-linux-arm64-musl": "0.6.0",
59
- "@nomicfoundation/edr-linux-x64-gnu": "0.6.0",
60
- "@nomicfoundation/edr-linux-x64-musl": "0.6.0",
61
- "@nomicfoundation/edr-win32-x64-msvc": "0.6.0"
55
+ "@nomicfoundation/edr-darwin-arm64": "0.6.1",
56
+ "@nomicfoundation/edr-darwin-x64": "0.6.1",
57
+ "@nomicfoundation/edr-linux-arm64-gnu": "0.6.1",
58
+ "@nomicfoundation/edr-linux-arm64-musl": "0.6.1",
59
+ "@nomicfoundation/edr-linux-x64-gnu": "0.6.1",
60
+ "@nomicfoundation/edr-linux-x64-musl": "0.6.1",
61
+ "@nomicfoundation/edr-win32-x64-msvc": "0.6.1"
62
62
  },
63
63
  "scripts": {
64
64
  "artifacts": "napi artifacts",
@@ -955,8 +955,14 @@ impl ErrorInferrer {
955
955
  return Ok(entry);
956
956
  }
957
957
 
958
+ // This function is only called after we jumped into the initial function in
959
+ // call traces, so there should always be at least a function jumpdest.
958
960
  let trace = match trace {
959
- Either::A(_call) => unreachable!("This shouldn't happen: a call trace has no functionJumpdest but has already jumped into a function"),
961
+ Either::A(_call) => return Err(
962
+ napi::Error::new(
963
+ napi::Status::GenericFailure,
964
+ "This shouldn't happen: a call trace has no functionJumpdest but has already jumped into a function"
965
+ )),
960
966
  Either::B(create) => create,
961
967
  };
962
968