File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
usvm-ts/src/main/kotlin/org/usvm/machine Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -269,13 +269,13 @@ class TsContext(
269
269
}
270
270
}
271
271
272
- // This is a special function that resolves promises in the interpreter .
272
+ // This is an identifier for a special function representing the 'resolve' function used in promises .
273
273
// It is not a real function in the code, but we need it to handle promise resolution.
274
- val resolveFunctionRef: UConcreteHeapRef = mkConcreteHeapRef(addressCounter.freshStaticAddress() )
274
+ val resolveFunctionRef: UConcreteHeapRef = allocateConcreteRef( )
275
275
276
- // This is a special function that rejects promises in the interpreter .
276
+ // This is an identifier for a special function representing the 'reject' function used in promises .
277
277
// It is not a real function in the code, but we need it to handle promise rejection.
278
- val rejectFunctionRef: UConcreteHeapRef = mkConcreteHeapRef(addressCounter.freshStaticAddress() )
278
+ val rejectFunctionRef: UConcreteHeapRef = allocateConcreteRef( )
279
279
}
280
280
281
281
class Constants {
Original file line number Diff line number Diff line change @@ -977,7 +977,7 @@ class TsExprResolver(
977
977
is TsMethodResult .NoCall -> {
978
978
val ptr = resolve(expr.ptr) ? : return null
979
979
980
- if (isStaticHeapRef (ptr)) {
980
+ if (isAllocatedConcreteHeapRef (ptr)) {
981
981
// Handle 'resolve' and 'reject' function call
982
982
if (ptr == = resolveFunctionRef || ptr == = rejectFunctionRef) {
983
983
val promise = scope.calcOnState {
You can’t perform that action at this time.
0 commit comments