mirror of
https://github.com/morluto/rea.git
synced 2026-10-27 18:05:45 +00:00
fix(javascript): bound primitive string growth and repeated evaluation
This commit is contained in:
1 parent
770d2f60aa
commit
4a1837d9d5
10 files changed
+298
-25
No files matched your search
@@ -25,6 +25,7 @@ import { semanticCoverageResourceLimits } from "../../domain/javascript/javascri
|
||||
import {
|
||||
SEMANTIC_EXPRESSION_DEPTH_LIMIT,
|
||||
SEMANTIC_PRIMITIVE_CANDIDATE_LIMIT,
|
||||
SEMANTIC_PRIMITIVE_JSON_BYTES_LIMIT,
|
||||
semanticResourceLimitReason,
|
||||
} from "../../domain/javascript/javascriptSemanticResourceLimits.js";
|
||||
import {
|
||||
@@ -136,11 +137,15 @@ const applicationGraphResourceLimit = (
|
||||
value:
|
||||
resourceLimit === "primitive-candidates"
|
||||
? SEMANTIC_PRIMITIVE_CANDIDATE_LIMIT
|
||||
: SEMANTIC_EXPRESSION_DEPTH_LIMIT,
|
||||
: resourceLimit === "primitive-bytes"
|
||||
? SEMANTIC_PRIMITIVE_JSON_BYTES_LIMIT
|
||||
: SEMANTIC_EXPRESSION_DEPTH_LIMIT,
|
||||
unit:
|
||||
resourceLimit === "expression-depth"
|
||||
? ("depth" as const)
|
||||
: ("items" as const),
|
||||
: resourceLimit === "primitive-bytes"
|
||||
? ("bytes" as const)
|
||||
: ("items" as const),
|
||||
});
|
||||
|
||||
const graphLimitations = (
|
||||
|
||||
Reference in new issue
Block a user