Comments (9)
Safari does not currently implement ES6 proxies or the older harmony proxies, and so this library will not work on it.
In Chrome v36 (stable, mac os x), opening your link does not reveal the ReferenceError
, instead I get a GET http://localhost:8080/apiApp/stomp/info net::ERR_CONNECTION_REFUSED
(probably because your code still references localhost
). Entering Proxy
in the console does reveal that the harmony-reflect shim was loaded successfully, and Proxy
was patched successfully.
Perhaps you can share a more isolated test-case that illustrates the problem?
from harmony-reflect.
that means it is working for you on Chrome v36 (stable, mac os x).
I noticed this issue in Chrome Version 36.0.1985.125 on Windows 7.
on mac I have Chrome beta Version 37.0.2062.68 and latest firefox. both are working fine.
May be this is specific to windows's version of Chrome.
from harmony-reflect.
Have you enabled the "Javascript harmony" flag on Chrome? As described in this library's README, Chrome currently only provides Proxies behind a flag. To enable, copy/paste chrome://flags/#enable-javascript-harmony
into your address bar.
from harmony-reflect.
my bad. I missed this point. now it is working as expected. hope we don't have to do this in Chrome 37+.
Thanks a lot @tvcutsem
from harmony-reflect.
no problem!
from harmony-reflect.
This is happening again with latest Chrome. I also tried chrome://flags/#enable-javascript-harmony
Chrome Version 38.0.2125.104
"harmony-reflect": "~1.1.0"
Any one else having this issue?
from harmony-reflect.
According to the V8 bug tracker, Proxy
got removed from Chrome recently (see https://code.google.com/p/v8/issues/detail?id=1543#c44). I don't know the details why.
Proxies are still available in v8 or node using --harmony-proxies
though, they're just not exposed to the browser.
from harmony-reflect.
Thanks @tvcutsem for update. It was working fine in 37 even without harmony flag.
Please keek this info under compatibity section in README.md sothat developers can save time debugging this issue.
from harmony-reflect.
Done!
from harmony-reflect.
Related Issues (20)
- "proxies not supported on this platform" error when multiple packages require harmony-reflect HOT 9
- get handler with Symbol HOT 6
- Reflect.Loader HOT 2
- Incompatible with Edge browser HOT 4
- Extending proxy classes HOT 3
- Cannot properly Proxy 'os' methods HOT 2
- Possible incompatibility gulp/jscs HOT 1
- Provide option to turn off warning "getOwnPropertyNames trap is deprecated. Use ownKeys instead" HOT 6
- harmony-reflect borks node repl
- Error when using Reflect.construct on ES2015 classes
- Calling Object.getOwnPropertySymbols() on a Proxy throws an error HOT 2
- 'Illegal access' error when using Object.assign() HOT 1
- Is there a way to conditionally load harmony-reflect HOT 2
- Question: Does this work with IE11? HOT 2
- Conflict with `reflect-metadata` HOT 6
- What is the actual license of this package? HOT 2
- Reflect.construct incorrectly calls newTarget, causing infinite loops HOT 1
- Is Reflect.set working as intended?
- Index not found HOT 8
- Does this polyfill works for chrome version 38 ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harmony-reflect.