kopia lustrzana https://github.com/c9/core
fix support for experimental js syntax
rodzic
64034389ec
commit
f9f5b8492e
|
@ -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();
|
|
@ -0,0 +1,2 @@
|
|||
acorn
|
||||
node_modules
|
|
@ -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
Ładowanie…
Reference in New Issue