How come this.__proto__ being deprecated but Object.getPrototypeOf(this) not implemented? #564
Replies: 5 comments
-
Posted at 2016-05-06 by @gfwilliams This'll be the JSHint (the lint plugin for the Web IDE) picking up on something. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-05-06 by DrAzzy So it's just the linter bitching about Object.getPrototypeOf is not listed in the reference, so it's no surprise that it's not implemented (the reference list is exhaustive, right? I think it's autogenerated so all methodscd show up, even if there's no info on them). Edit: beaten.... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-05-06 by @allObjects Thanks. I like the light-weight I see the challenge of keeping up with JS ECMA... and it will get more intense... ES6... 7. But it is for sure fun and you - including every one else - will not get bored... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-05-06 by @allObjects I'm now thinking IDE could use a (user configurable) profile about what is ultimately fed to the linter... (no pressure on anyone...) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-05-09 by @gfwilliams I liked
Yep, it's whatever is in the current release of Espruino, so at the moment 1v85. There may be some other stuff in the latest Git build.
@allObjects - https://github.com/espruino/EspruinoWebIDE/blob/gh-pages/js/core/editorJavaScript.js#L29 :) I'm not sure it needs to be configurable, but disabling just that warning should be easy. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-05-06 by @allObjects
Code using deprecated
__proto__
(see screenshot) works:Console output:
Code 'correctly' getting prototype:
Console output:
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions