change some things to expectPlugin

This commit is contained in:
Henry Zhu
2017-08-03 11:13:00 -04:00
parent cf3ebacf4f
commit 2dbba25d1a
22 changed files with 110 additions and 48 deletions

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected ( (2:15)"
"throws": "Dynamic imports require a parameter: import('a.js').then (1:0)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected ( (2:10)"
"throws": "This experimental syntax requires enabling the parser plugin: 'functionSent' (2:11)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected ( (2:11)"
"throws": "This experimental syntax requires enabling the parser plugin: 'functionSent' (2:12)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected ( (2:17)"
"throws": "This experimental syntax requires enabling the parser plugin: 'functionSent' (2:18)"
}

View File

@@ -1,4 +1,4 @@
{
"throws": "Unexpected token (1:15)",
"throws": "This experimental syntax requires enabling the parser plugin: 'asyncGenerators' (1:15)",
"plugins": []
}
}

View File

@@ -0,0 +1,2 @@
@memoize
function() {}

View File

@@ -0,0 +1,4 @@
{
"throws": "This experimental syntax requires enabling the parser plugin(s): 'decorators, decorators2' (1:0)",
"plugins": []
}

View File

@@ -0,0 +1 @@
(do {x})

View File

@@ -0,0 +1,4 @@
{
"throws": "This experimental syntax requires enabling the parser plugin: 'doExpressions' (1:1)",
"plugins": []
}

View File

@@ -0,0 +1 @@
var $ = import("jquery");

View File

@@ -0,0 +1,4 @@
{
"throws": "This experimental syntax requires enabling the parser plugin: 'dynamicImport' (1:8)",
"plugins": []
}

View File

@@ -0,0 +1 @@
const x = import.meta;

View File

@@ -0,0 +1,5 @@
{
"throws": "This experimental syntax requires enabling the parser plugin: 'importMeta' (1:17)",
"sourceType": "module",
"plugins": []
}

View File

@@ -0,0 +1 @@
({...x})

View File

@@ -0,0 +1,4 @@
{
"throws": "This experimental syntax requires enabling the parser plugin: 'objectRestSpread' (1:2)",
"plugins": []
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected ( (4:6)"
"throws": "This experimental syntax requires enabling the parser plugin: 'optionalCatchBinding' (4:6)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected ( (4:6)"
"throws": "This experimental syntax requires enabling the parser plugin: 'optionalCatchBinding' (4:6)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "You can only use optional-chaining when the 'optionalChaining' plugin is enabled. (1:0)"
"throws": "This experimental syntax requires enabling the parser plugin: 'optionalChaining' (1:1)"
}