https://codereview.appspot.com/31170043/diff/1/tests/com/google/caja/plugin/test-scan-core.js
File tests/com/google/caja/plugin/test-scan-core.js (right):
https://codereview.appspot.com/31170043/diff/1/tests/com/google/caja/plugin/test-scan-core.js#newcode421
tests/com/google/caja/plugin/test-scan-core.js:421: * will be the
'this' value if the expression is called.
On 2013/11/25 18:33:51, felix8a wrote:
I'm a little confused by this description. it reads to me like,
"evaluating
src will set this to thisArg", but that doesn't make sense.
It looks to me that thisArg is the value of this while evaluating the
outermost expression in src, so if src is like 'x.y.z' then thisArg
will be
x.y?
Yes. "If you add parentheses after this expression, then the 'this' for
the resulting function-call expression will be..."
Rephrased.
https://codereview.appspot.com/31170043/diff/1/tests/com/google/caja/plugin/test-scan-guest.js
File tests/com/google/caja/plugin/test-scan-guest.js (right):
https://codereview.appspot.com/31170043/diff/1/tests/com/google/caja/plugin/test-scan-guest.js#newcode1517
tests/com/google/caja/plugin/test-scan-guest.js:1517: c.invocation(2,
THIS, [], false).getProgram()); // TODO unrealistic
On 2013/11/25 18:33:51, felix8a wrote:
TODO(kpreid)
Done. Also tweaked the test cases and another comment.
https://codereview.appspot.com/31170043/
--
---
You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.