Code Monkey home page Code Monkey logo

Comments (9)

tvcutsem avatar tvcutsem commented on May 13, 2024

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.

xmlking avatar xmlking commented on May 13, 2024

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.
image001
image002

from harmony-reflect.

tvcutsem avatar tvcutsem commented on May 13, 2024

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.

xmlking avatar xmlking commented on May 13, 2024

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.

tvcutsem avatar tvcutsem commented on May 13, 2024

no problem!

from harmony-reflect.

xmlking avatar xmlking commented on May 13, 2024

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.

tvcutsem avatar tvcutsem commented on May 13, 2024

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.

xmlking avatar xmlking commented on May 13, 2024

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.

tvcutsem avatar tvcutsem commented on May 13, 2024

Done!

from harmony-reflect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.