fix support for experimental js syntax

pull/468/merge
nightwing 2017-12-13 21:47:37 +04:00
rodzic 64034389ec
commit f9f5b8492e
4 zmienionych plików z 208 dodań i 150 usunięć

Wyświetl plik

@ -50,7 +50,9 @@ q;
class Blie {}
@exported
class Model extends Blie {
x = 1
constructor(properties) {
this.properties = properties;
}
@ -58,6 +60,12 @@ class Model extends Blie {
toObject() {
return this.properties;
}
@exported(1)
async f() {
this::exported();
::myFun;
}
}
new Model();

Wyświetl plik

@ -0,0 +1,2 @@
acorn
node_modules

Wyświetl plik

@ -0,0 +1,18 @@
#!/bin/bash
set -euo pipefail
cd `dirname $0`
npm i
if ! [ -d acorn/.git ]; then
git clone https://github.com/c9/acorn
fi
pushd acorn
git fetch origin
git reset origin/master --hard
npm i
npm run build
popd
cp acorn/dist/* node_modules/acorn/dist
node eslint.js

File diff suppressed because one or more lines are too long