Make async, and test both wasm and asm using jest

This commit is contained in:
Nick Gerleman
2022-12-22 05:49:05 -08:00
parent 09f0869262
commit 5561d9e651
33 changed files with 1537 additions and 248 deletions

View File

@@ -31,12 +31,7 @@ function toJavascriptUpper(symbol) {
JavascriptEmitter.prototype = Object.create(Emitter.prototype, {
constructor:{value:JavascriptEmitter},
emitPrologue:{value:function() {
this.push([
'var Yoga = Yoga || require("../..");',
''
]);
}},
emitPrologue:{value:function() {}},
emitTestPrologue:{value:function(name, experiments) {
this.push('it(' + JSON.stringify(name) + ', function () {');