Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Attempt to improve locating of correct inline scripts via function source code #4

Open
JamesMGreene opened this issue Mar 18, 2015 · 2 comments

Comments

@JamesMGreene
Copy link
Owner

Critical Piece:
Being able to get the function reference to the calling function, e.g. via _nearestExecutingScript.caller/arguments.callee.caller/arguments.caller. Seems like "use strict" (JS strict mode) usage will make this next to impossible/useless. 😞

Research:

@JamesMGreene JamesMGreene changed the title Attempt to improve locating of inline scripts via function source code Attempt to improve locating of correct inline scripts via function source code Mar 18, 2015
@JamesMGreene
Copy link
Owner Author

@JamesMGreene
Copy link
Owner Author

Easily detect if executing in a strict mode context:

var isStrictMode = (function() { return !this; })();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant