modernize JS

This commit is contained in:
Nick Gerleman
2022-12-24 02:17:10 -08:00
parent c4fe4823a7
commit bf81d8e180
33 changed files with 371 additions and 369 deletions

View File

@@ -33,7 +33,7 @@ JavascriptEmitter.prototype = Object.create(Emitter.prototype, {
emitPrologue:{value:function() {}},
emitTestPrologue:{value:function(name, experiments) {
this.push('test(' + JSON.stringify(name) + ', function () {');
this.push('test(' + JSON.stringify(name) + ', () => {');
this.pushIndent();
this.push('const config = Yoga.Config.create();');
this.push('let root;');