UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
Steps to reproduce the problem:
Call define() with an invalid dependency, e.g.
chrome.mojoPrivate.define('foo', ['no such dependency'], () => {});
What is the expected behavior?
Several options, from most to least preferable (IMHO):
- The call should throw an exception.
- An error should be logged to the JS console.
- The dependency should resolve to null.
- An error should be logged with LOG/DLOG/VLOG.
Ideally I'd like this call to throw an exception. If that's not possible (because dependencies are resolved asynchronously), I'd like to see an error logged to the console, and if that's too hard to implement, perhaps the callback could be invoked with null in place of the missing dependency.
What went wrong?
The function returns undefined, and the callback is not invoked.
Did this work before? No
Chrome version: 57.0.2987.54 Channel: beta
OS Version: 3.13.0-106-generic
Flash Version:
Comment 1 by dtapu...@chromium.org
, Mar 6 2017