Skip to content

Commit

Permalink
Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ebidel committed Oct 16, 2016
1 parent 4f587ad commit be78018
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lighthouse-core/gather/drivers/driver.js
Expand Up @@ -596,7 +596,9 @@ function captureJSCallUsage(funcRef, set) {
const originalPrepareStackTrace = Error.prepareStackTrace;

return function() {
const args = Object.values(arguments); // callee's arguments.
// Note: this function runs in the context of the page that is being audited.

const args = [...arguments]; // callee's arguments.

// See v8's Stack Trace API https://github.com/v8/v8/wiki/Stack-Trace-API#customizing-stack-traces
Error.prepareStackTrace = function(error, structStackTrace) {
Expand Down

0 comments on commit be78018

Please sign in to comment.