Bug 94518 - Web Inspector: setting 'eval' breaks the debugger
Summary: Web Inspector: setting 'eval' breaks the debugger
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-20 13:19 PDT by felix
Modified: 2014-12-04 16:06 PST (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description felix 2012-08-20 13:19:15 PDT
If a script sets 'eval' to something other than eval, the debugger becomes pretty useless, there's no way to inspect any values.

This is a problem for people working in js sandboxes that disable eval, and possibly a problem for people trying to analyze malicious js.

<!doctype html>
<html>
<head>
<script>
  var e = 33;
  eval = 'thirty three';
  debugger;
</script>
</head>
</html>