You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// We need an audio context to decode the file
// By default, buffer-loader search for audioContext in the window.
var audioContext = new AudioContext();
// Load the file passing the path
var myBufferLoader = createBufferLoader();
myBufferLoader.load('FILE_URL').then(
function(buffer){
// Here we throw an Error
// But without the done function below, the error would have been swallowed
throw new Error('Error');
}
).done(
function(result){
console.log(result); // Here we will get the error
}
);
So, for the moment, the solution to catch programmatic errors is to use done()
The text was updated successfully, but these errors were encountered:
It's a knows bug/feature: kriskowal/q#30
So, for the moment, the solution to catch programmatic errors is to use done()
The text was updated successfully, but these errors were encountered: