blob: 7e1f83a2bbb5f9863727e888e7df24123517eca2 [file] [log] [blame] [edit]
binaryen.setAPITracing(true);
assert(binaryen.getPassArgument("theKey") === null);
binaryen.setPassArgument("theKey", "theValue");
assert(binaryen.getPassArgument("theKey") === "theValue");
binaryen.setPassArgument("theKey", null);
assert(binaryen.getPassArgument("theKey") === null);
binaryen.setPassArgument("theKey", "theValue2");
assert(binaryen.getPassArgument("theKey") === "theValue2");
binaryen.clearPassArguments();
assert(binaryen.getPassArgument("theKey") === null);
binaryen.setAPITracing(false);