1 | sS ai_performJavaCheck_safe(S s) { |
2 | new Matches m; |
3 | if (!swic_trim(s, "java check:", m)) null; |
4 | S code = $1; |
5 | if (!isSafeCodeFragment(code)) |
6 | ret null with print("Skipping unsafe code: " + code); |
7 | O result = javaEvalOrInterpret(code); |
8 | if (isTrue(result)) ret "Yes"; |
9 | if (isFalse(result)) ret "No"; |
10 | ret "Not sure"; |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021420 |
Snippet name: | ai_performJavaCheck_safe [boolean-returning code fragment] |
Eternal ID of this version: | #1021420/2 |
Text MD5: | 107436f47742630bc327053f060a2eb2 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-11 13:32:25 |
Source code size: | 338 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 253 / 291 |
Version history: | 1 change(s) |
Referenced in: | [show references] |