JS: More tests

This commit is contained in:
Asger Feldthaus
2022-04-07 12:42:24 +02:00
parent fec2837c1e
commit 4c66f50352
2 changed files with 13 additions and 0 deletions

View File

@@ -10,3 +10,6 @@ accessorCall
| accessors.js:29:1:29:3 | C.f | accessors.js:22:15:22:20 | (x) {} |
| accessors.js:41:1:41:9 | new D().f | accessors.js:34:8:34:12 | () {} |
| accessors.js:44:1:44:9 | new D().f | accessors.js:37:8:37:13 | (x) {} |
| accessors.js:48:1:48:5 | obj.f | accessors.js:5:8:5:12 | () {} |
| accessors.js:51:1:51:3 | C.f | accessors.js:19:15:19:19 | () {} |
| accessors.js:54:1:54:9 | new D().f | accessors.js:34:8:34:12 | () {} |

View File

@@ -42,3 +42,13 @@ new D().f;
/** callsAccessor:D.f.set */
new D().f = 1;
// Avoid regular calls being seen as calls to the accessor itself
/** calls:NONE */
obj.f();
/** calls:NONE */
C.f();
/** calls:NONE */
new D().f();