(serialized_scope, prop)
| 326 | } |
| 327 | |
| 328 | execStateScopeObjectProperty(serialized_scope, prop) { |
| 329 | let found = null; |
| 330 | for (let i = 0; i < serialized_scope.length; i++) { |
| 331 | const elem = serialized_scope[i]; |
| 332 | if (elem.name == prop) { |
| 333 | found = elem; |
| 334 | break; |
| 335 | } |
| 336 | } |
| 337 | |
| 338 | if (found == null) return { isUndefined: () => true }; |
| 339 | if (found.value === undefined) return { isUnavailable: () => true }; |
| 340 | |
| 341 | const val = { value : () => found.value.value }; |
| 342 | // Not undefined in the sense that we did find a property, even though |
| 343 | // the value can be 'undefined'. |
| 344 | return { value : () => val, |
| 345 | isUndefined: () => false, |
| 346 | isUnavailable: () => false, |
| 347 | }; |
| 348 | } |
| 349 | |
| 350 | // Returns an array of property descriptors of the scope object. |
| 351 | // This is in contrast to the original API, which simply passed object |
no outgoing calls
no test coverage detected