(e any)
| 141 | } |
| 142 | |
| 143 | func ThrowDetachedError(e any) { |
| 144 | message := errorMessage(e) |
| 145 | value, conversionErr := otto.ToValue("Error: " + message) |
| 146 | if conversionErr != nil { |
| 147 | panic(conversionErr) |
| 148 | } |
| 149 | panic(value) |
| 150 | } |
| 151 | |
| 152 | func throwForVM(vm *VM, e any) { |
| 153 | if vm == nil { |