Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit d029916

Browse files
committed
Replace SandboxException as it has no particular use
1 parent a706a95 commit d029916

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

‎src/Exceptions/SandboxException.php

Lines changed: 0 additions & 21 deletions
This file was deleted.

‎src/Modules/RequireCallback.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
use League\Flysystem\Util;
2020
use Pinepain\JsSandbox\Exceptions\NativeException;
21-
use Pinepain\JsSandbox\Exceptions\SandboxException;
2221
use Pinepain\JsSandbox\Modules\Repositories\NativeModulesRepositoryInterface;
2322
use Pinepain\JsSandbox\Modules\Repositories\SourceModulesRepositoryInterface;
2423
use Pinepain\JsSandbox\Wrappers\FunctionComponents\Runtime\ExecutionContextInterface;
@@ -116,7 +115,7 @@ protected function buildModule(string $filename, ?ModuleInterface $top): ModuleI
116115
if ($top->isLoaded()) {
117116
// UNLIKELY
118117
// this should never happens, but just in case
119-
throw new SandboxException('Modifying loaded module is not allowed');
118+
throw new NativeException('Modifying loaded module is not allowed');
120119
}
121120

122121
// add current module as top one child

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /