I understand the thrust, but I think the verbatim copy helps orient the
developer better than anything. Comments and newlines doesn't happen too
often
inside of an expression, but regardless, that extra context helps me
mentally
map the error back to my original source much easier than the basic
"(intermediate value).f is not a function".
For this example, the DevTools could handle formatting so we could output
something like:
TypeError: (intermediate value).f is not a function
file.js:169
Thrown while evaluating:
(function() {
/* bla */
}).f()
https://codereview.chromium.org/861623002/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" 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/d/optout.