Comparing version 1.11.0 to 1.12.0
@@ -575,8 +575,10 @@ /** | ||
* @param {ASTNode} body The program body | ||
* @param {string} sourceType Either "module" or "script". | ||
* @returns {ASTNode} An ASTNode representing an entire program | ||
*/ | ||
createProgram: function (body) { | ||
createProgram: function (body, sourceType) { | ||
return { | ||
type: astNodeTypes.Program, | ||
body: body | ||
body: body, | ||
sourceType: sourceType | ||
}; | ||
@@ -583,0 +585,0 @@ }, |
@@ -11,3 +11,3 @@ { | ||
}, | ||
"version": "1.11.0", | ||
"version": "1.12.0", | ||
"files": [ | ||
@@ -14,0 +14,0 @@ "bin", |
@@ -183,3 +183,2 @@ # Espree | ||
* All Esprima/Harmony incompatibilities. | ||
* Esprima-FB uses the term "XJS" to refer to its JSX support. This is seen primarily in the AST node types, such as `"XJSElement"`. Espree uses "JSX" to refer to JSX functionality, including AST node types. So, `"XJSElement"` in Esprima-FB is `"JSXElement"` in Espree (and the same is true for all JSX-related node types). | ||
@@ -186,0 +185,0 @@ ## Frequently Asked Questions |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
306786
7771
222