Update Binaryen to latest; Various fixes

This commit is contained in:
Daniel Wirtz
2018-10-11 08:49:08 +02:00
committed by GitHub
parent b54a97c0fe
commit f7c734789e
228 changed files with 12372 additions and 14996 deletions

View File

@ -81,7 +81,7 @@ tests.forEach(filename => {
// TODO: also save stdout/stderr and diff it (-> expected failures)
// Build unoptimized
asc.main( [
asc.main([
filename,
"--baseDir", basedir,
"--validate",
@ -188,28 +188,26 @@ tests.forEach(filename => {
externalFunction: function() { },
externalConstant: 1
},
JSOp: {
math: {
mod: function(a, b) { return a % b; }
},
JSMath: Math,
Math: Math,
// tests/declare
declare: {
externalFunction: function() { },
externalConstant: 1
},
my: {
externalFunction: function() { },
externalConstant: 2
externalConstant: 1,
"my.externalFunction": function() { },
"my.externalConstant": 2
},
// tests/external
external: {
foo: function() {},
"foo.bar": function() {},
bar: function() {}
},
foo: {
bar: function() {},
baz: function() {},
"var": 3
}