×

Capturing telemetry data by dynamic language engine

  • US 9,069,897 B2
  • Filed: 11/23/2011
  • Issued: 06/30/2015
  • Est. Priority Date: 11/23/2011
  • Status: Active Grant
First Claim
Patent Images

1. A method, implemented at a computer system that includes one or more processors, for communicating script call stacks associated with unhandled script exceptions across a security barrier between a scripting environment and a host environment at the computer system, the method comprising:

  • presenting, at the one or more processors, a security barrier between a scripting environment that includes a script engine and a host environment that includes a host component, the host component maintaining execution control at the one or more processors when scripts are not being executed at the script engine, the security barrier being configured to separate the script engine from the host component, the security barrier including an interface for communicating script call stacks between the script engine and the host component;

    during execution of script code at the script engine, detecting, by the script engine, that a first exception has been thrown by the script code, the first exception being an unhandled exception because the script code lacks code for handling the first exception, and performing at least the following based the first exception having been thrown by the script code;

    the script engine capturing a first script call stack representing at least a portion of a script stack associated with execution of the script code at the script engine when the first exception was thrown, wherein capturing the first script call stack includes capturing the first script call stack in a host-accessible manner in which the first script call stack can be communicated to the host component using an object model of the host component;

    the script engine completing unwinding of the script stack after capturing the first script call stack; and

    the script engine communicating the first script call stack to the host component over the interface in the security barrier using the object model of the host component; and

    during execution of the script code at the script engine, detecting, by the script engine, that a second exception has been thrown by the script code, the second exception being a handled exception because the script code includes code for handling the second exception, and performing at least the following based the second exception having been thrown by the script code;

    the script engine capturing a second script call stack representing at least a portion of the script stack associated with execution of the script code at the script engine when the second exception was thrown, wherein capturing the second script call stack includes capturing the script call stack in a script-accessible manner;

    the script engine abstaining from capturing any script call stack in the host-accessible manner; and

    the script engine communicating the second script call stack to the script code.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×