Skip to content

Commit a306bc4

Browse files
committed
Add more JS builtins for Explicit Resource Management
1 parent 811e0cf commit a306bc4

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

custom/js.json

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,18 @@
3131
"disposeAsync",
3232
"disposed",
3333
"move",
34-
"use"
34+
"use",
35+
"@@asyncDispose"
3536
]
3637
}
3738
},
39+
"AsynIterator": {
40+
"__comment": "Remove when https://arai-a.github.io/ecma262-compare/?pr=3000 is merged into the main ECMAScript spec.",
41+
"ctor": {},
42+
"members": {
43+
"instance": ["@@asyncDispose"]
44+
}
45+
},
3846
"Atomics": {
3947
"members": {
4048
"static": ["pause"]
@@ -55,7 +63,15 @@
5563
"__comment": "Remove when https://arai-a.github.io/ecma262-compare/?pr=3000 is merged into the main ECMAScript spec.",
5664
"ctor": {},
5765
"members": {
58-
"instance": ["adopt", "defer", "dispose", "disposed", "move", "use"]
66+
"instance": [
67+
"adopt",
68+
"defer",
69+
"dispose",
70+
"disposed",
71+
"move",
72+
"use",
73+
"@@dispose"
74+
]
5975
}
6076
},
6177
"Error": {
@@ -113,7 +129,8 @@
113129
},
114130
"SuppressedError": {
115131
"__comment": "Remove when https://arai-a.github.io/ecma262-compare/?pr=3000 is merged into the main ECMAScript spec.",
116-
"ctor": {}
132+
"ctor": {},
133+
"instance": ["error", "suppressed"]
117134
},
118135
"Symbol": {
119136
"members": {"static": ["asyncDispose", "dispose"]}
@@ -253,7 +270,8 @@
253270
"reduce",
254271
"some",
255272
"take",
256-
"toArray"
273+
"toArray",
274+
"@@dispose"
257275
]
258276
}
259277
},

0 commit comments

Comments
 (0)