diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/node_messaging.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node_messaging.cc b/src/node_messaging.cc index a1f28d4746d..aac1245f269 100644 --- a/src/node_messaging.cc +++ b/src/node_messaging.cc @@ -98,19 +98,19 @@ class DeserializerDelegate : public ValueDeserializer::Delegate { uint32_t id; if (!deserializer->ReadUint32(&id)) return MaybeLocal<Object>(); - CHECK_LE(id, host_objects_.size()); + CHECK_LT(id, host_objects_.size()); return host_objects_[id]->object(isolate); } MaybeLocal<SharedArrayBuffer> GetSharedArrayBufferFromId( Isolate* isolate, uint32_t clone_id) override { - CHECK_LE(clone_id, shared_array_buffers_.size()); + CHECK_LT(clone_id, shared_array_buffers_.size()); return shared_array_buffers_[clone_id]; } MaybeLocal<WasmModuleObject> GetWasmModuleFromId( Isolate* isolate, uint32_t transfer_id) override { - CHECK_LE(transfer_id, wasm_modules_.size()); + CHECK_LT(transfer_id, wasm_modules_.size()); return WasmModuleObject::FromCompiledModule( isolate, wasm_modules_[transfer_id]); } |