我正在尝试在原生Firefox中代理一个Promise(并使用Babel)。
var prom = new Promise(function(resolve, reject){resolve(42)});
var promProxy = new Proxy(prom, {});
promProxy.then(function(response){console.log(response)});
这段代码无法正常工作,会出现“TypeError: 'then' called on an object that does not implement interface Promise.”的错误提示。