Skip to content

Commit 41c8baa

Browse files
committed
Update
1 parent cb737a0 commit 41c8baa

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Core/JVM/Invoker/Extended/JavaMethodCallable.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,7 @@ function ($argument) {
233233
/**
234234
* @var Accumulator|ConstantPool|OperationCodeInterface $executor
235235
*/
236-
$executor = $operationCache->fetchOrPush(
237-
$fullName,
238-
function () use ($fullName) {
239-
return new $fullName();
240-
}
241-
);
236+
$executor = new $fullName();
242237

243238
$beforeTrigger = $this->options['operations']['injections']['before'] ?? GlobalOptions::get('operations.injections.before');
244239
if (is_callable($beforeTrigger)) {

src/Kernel/Mnemonics/Operands.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ public function offsetExists($offset)
4040

4141
public function offsetGet($offset)
4242
{
43+
if (!$this->offsetExists($offset)) {
44+
throw new OperationException('Does not exist an operand.');
45+
}
4346
return $this->operands[$offset][0];
4447
}
4548

0 commit comments

Comments
 (0)