Skip to content

Commit 7d41c41

Browse files
committed
[TS] Share prototype property set with delete model
1 parent 8ba36f0 commit 7d41c41

2 files changed

Lines changed: 1 addition & 17 deletions

File tree

‎usvm-ts/src/main/kotlin/org/usvm/machine/expr/TsExprResolver.kt‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -144,22 +144,6 @@ private const val ECMASCRIPT_BITWISE_INTEGER_SIZE = 32
144144
*/
145145
private const val ECMASCRIPT_BITWISE_SHIFT_MASK = 0b11111
146146

147-
// Prototype lookup is not modeled. These keys must not be reported as absent on an object literal.
148-
private val OBJECT_PROTOTYPE_PROPERTIES = setOf(
149-
"__defineGetter__",
150-
"__defineSetter__",
151-
"__lookupGetter__",
152-
"__lookupSetter__",
153-
"__proto__",
154-
"constructor",
155-
"hasOwnProperty",
156-
"isPrototypeOf",
157-
"propertyIsEnumerable",
158-
"toLocaleString",
159-
"toString",
160-
"valueOf",
161-
)
162-
163147
private enum class UpdateOperator {
164148
INCREMENT,
165149
DECREMENT,

‎usvm-ts/src/test/kotlin/org/usvm/samples/operators/InOperatorPresenceTest.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class InOperatorPresenceTest : TsMethodTestRunner() {
122122
"${outcome.unsupportedPaths}")
123123
}
124124
if (methodName == "deletedToStringExposesPrototype" || methodName == "inheritedConstructor") {
125-
assertTrue(outcome.unsupportedPaths.any { "Prototype lookup" in it },
125+
assertTrue(outcome.unsupportedPaths.any { it.contains("prototype lookup", ignoreCase = true) },
126126
"${outcome.unsupportedPaths}")
127127
}
128128
}

0 commit comments

Comments
 (0)