Implement the export statement

This commit is contained in:
Fábio Santos
2016-02-27 12:24:18 +00:00
committed by Richard van Velzen
parent 86b5248837
commit ce84a706a3
4 changed files with 70 additions and 1 deletions

View File

@@ -316,6 +316,18 @@ import_statement: {
expect_exact: "import\"mod-name\";import Foo from\"bar\";import{Bar,Baz}from\"lel\";import Bar,{Foo}from\"lel\";import{Bar as kex,Baz as food}from\"lel\";"
}
export_statement: {
input: {
export default 1;
export var foo = 4;
export let foo = 6;
export const foo = 6;
export function foo() {};
export class foo { };
}
expect_exact: "export default 1;export var foo=4;export let foo=6;export const foo=6;export function foo(){};export class foo{};"
}
import_statement_mangling: {
mangle = { };
input: {