We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f6d551 commit 4ff4237Copy full SHA for 4ff4237
test/index.js
@@ -20,3 +20,12 @@ test('does not change main acorn module', function (t) {
20
})
21
t.end()
22
23
+
24
+test('tokenizes object spread syntax', function (t) {
25
+ var tokenizer = acorn.tokenizer('var a = { ...b }')
26
27
+ t.doesNotThrow(function (t) {
28
+ while (tokenizer.getToken().type !== acorn.tokTypes.eof) {}
29
+ })
30
+ t.end()
31
+})
0 commit comments