Skip to content

Commit 875913f

Browse files
tmcwmarijnh
authored andcommitted
[javascript mode] Add test for bigint literals
1 parent 08a7641 commit 875913f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mode/javascript/test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@
268268
"[keyword const] [def async] [operator =] {[property a]: [number 1]};",
269269
"[keyword const] [def foo] [operator =] [string-2 `bar ${][variable async].[property a][string-2 }`];")
270270

271+
MT("bigint", "[number 1n] [operator +] [number 0x1afn] [operator +] [number 0o064n] [operator +] [number 0b100n];")
272+
271273
MT("async_comment",
272274
"[keyword async] [comment /**/] [keyword function] [def foo]([def args]) { [keyword return] [atom true]; }");
273275

0 commit comments

Comments
 (0)