File tree Expand file tree Collapse file tree 2 files changed +31
-5
lines changed Expand file tree Collapse file tree 2 files changed +31
-5
lines changed Original file line number Diff line number Diff line change @@ -236,14 +236,39 @@ Objects with reserved words as keys
236
236
public: true,
237
237
private: true,
238
238
readonly: true
239
- }
239
+ };
240
+
241
+ {
242
+ readonly: 1,
243
+ abstract: 1,
244
+ static: 1
245
+ };
240
246
241
247
---
242
248
243
- (program (expression_statement (object
244
- (pair key: (property_identifier) value: (true))
245
- (pair key: (property_identifier) value: (true))
246
- (pair key: (property_identifier) value: (true)))))
249
+ (program
250
+ (expression_statement
251
+ (object
252
+ (pair
253
+ key: (property_identifier)
254
+ value: (true))
255
+ (pair
256
+ key: (property_identifier)
257
+ value: (true))
258
+ (pair
259
+ key: (property_identifier)
260
+ value: (true))))
261
+ (expression_statement
262
+ (object
263
+ (pair
264
+ key: (property_identifier)
265
+ value: (number))
266
+ (pair
267
+ key: (property_identifier)
268
+ value: (number))
269
+ (pair
270
+ key: (property_identifier)
271
+ value: (number)))))
247
272
248
273
====================================
249
274
Assignment to non-null LHS
Original file line number Diff line number Diff line change @@ -1052,6 +1052,7 @@ module.exports = function defineGrammar(dialect) {
1052
1052
'export' ,
1053
1053
'object' ,
1054
1054
'new' ,
1055
+ 'readonly' ,
1055
1056
previous ,
1056
1057
) ,
1057
1058
} ,
You can’t perform that action at this time.
0 commit comments