tvcutsem / harmony-reflect

ES5 shim for ES6 Reflect and Proxy objects
http://www.ecma-international.org/ecma-262/6.0/#sec-reflection
Other
478 stars 48 forks source link

proxies not supported on this platform #44

Closed jschmidt42 closed 9 years ago

jschmidt42 commented 9 years ago

I get this exception when calling Proxy(...).

Error: proxies not supported on this platform at new global.Proxy (http://localhost:55503/Core/shared-html-widgets/3rdparty/reflect.js:1992:11) at Object.ViewModelMarshallingService._getOrCreateRemoteObject (http://localhost:55503/Core/js/angular/services/view-model-marshalling-service.js?bust=1418052137254:489:37)

Here's are my Chrome version info:

Google Chrome 39.0.2171.71 (Build officiel) m Révision 465742dffbc8f2edcb5dacd2afc8b095199172fc-refs/branch-heads/2171_62@{#12} Système d'exploitation Windows Blink 537.36 (@185310) JavaScript V8 3.29.88.17 Flash 15.0.0.239 Agent utilisateur Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Ligne de commande "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --harmony-proxies --flag-switches-begin --javascript-harmony --flag-switches-end

tvcutsem commented 9 years ago

Chrome v38+ no longer exposes the old Proxy object because of some security issues, meaning this library can no longer patch that object. I have heard one can still enable proxies explicitly on Chromium, using chromium-browser --js-flags="--harmony_proxies"

(I noticed you started chrome.exe explicitly with --harmony-proxies. Perhaps that should be --harmony_proxies, note _ vs -) However, note that --harmony_proxies is a v8 flag, I'm not sure Chrome will readily accept it.