-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
It's a knows bug/feature: kriskowal/q#30
// 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()
Metadata
Metadata
Assignees
Labels
No labels