Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

caller.js 354B

12345678
  1. module.exports = function () {
  2. // see https://code.google.com/p/v8/wiki/JavaScriptStackTraceApi
  3. var origPrepareStackTrace = Error.prepareStackTrace;
  4. Error.prepareStackTrace = function (_, stack) { return stack; };
  5. var stack = (new Error()).stack;
  6. Error.prepareStackTrace = origPrepareStackTrace;
  7. return stack[2].getFileName();
  8. };