I saw a blank stub on MDN a while ago for the Reflect
object in javascript but I can't for the life of me find anything on Google. Today I found this http://people.mozilla.org/~jorendorff/es6-draft.html#sec-reflect-object and it sounds similar to the Proxy object apart from the realm and loader functionality.
Basically, I don't know whether this page I found only explains how to implement Reflect or if I just can't understand its wording. Could someone please explain to me generally what the methods of Reflect
do?
For instance, on the page I found says that calling Reflect.apply ( target, thisArgument, argumentsList )
will Return the result of calling the [[Call]] internal method of target with arguments thisArgument and args. but how is that any different than just calling target.apply(thisArgument, argumentsList)
?
Update:
Thanks to @Blue, I found this page on the wiki
http://wiki.ecmascript.org/doku.php?id=harmony:reflect_api&s=reflect
which to the best of my knowledge says that the reflect object provides method versions of all the actions that can be trapped by proxies to make forwarding easier. But that seems a little weird to me since I don't see how it's entirely necessary. But it Seems to do a little more than that, particularly the par that says double-lifting
but that points to the old proxy spec/