All Questions
3
questions
9
votes
1
answer
1k
views
Why does 'await' trigger '.then()' on a Proxy returned by an 'async' function ?
I am compiling the code with babel (env), compiling down to ES5.
Here's the code:
(async () => {
const p = async () => {
return new Proxy({}, {
get: (...
59
votes
7
answers
21k
views
Can I extend Proxy with an ES2015 class?
I tried to extend Proxy, like so:
class ObservableObject extends Proxy {}
I used Babel to transpile it to ES5, and I got this error in the browser:
app.js:15 Uncaught TypeError: Object prototype may ...
23
votes
3
answers
15k
views
Can Babel transpile code using Proxy into ES5?
I'm using babelify version 6.3.0 set to stage 0. ES6 / ES7 are working great. However when I try to use JavaScript's proxy functionality:
set product(product={}) {
this._product = new Proxy({}, {})...