summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/script-mutate.js
blob: c47a523d60e60f0e873558d685636a6d399f20ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */
function mutate() {
  const phonebook = {
    S: {
      sarah: {
        lastName: "Doe"
      },
      serena: {
        lastName: "Williams"
      }
    }
  };

  debugger;
  phonebook.S.sarah.lastName = "Pierce";
  debugger;
  phonebook.S.sarah.timezone = "PST";
  debugger;
}