blob: 1adb6b79bfe6cc45a684c4de1100aa442de1d852 [file]
#preprocess
#include "save_profile_data.js"
function saveProfileData() {
save_profile_data();
// Say hello *after* recording the profile so that all functions are deferred.
var result = _say_hello();
if (typeof Asyncify !== 'undefined') {
console.log((result instanceof Promise) ? 'result is promise' : '');
}
}
addOnPostRun(saveProfileData);