Test that watch expressions expansion state is restored after update. Bug 99304 Watch expressions added. expanded foo [object Object] expanded bar [object Object] expanded [[Scopes]] [object Object] expanded 0 [object Object] expanded a [object Object] expanded [200 .. 299] expanded 299 [object Object] Watch expressions expanded. globalObject: Object foo: Object bar: Object __proto__: Object __proto__: Object windowAlias: Window array: Array[300] Array(300) [0 .. 99] [100 .. 199] [200 .. 299] 200: 200 201: 201 202: 202 203: 203 204: 204 205: 205 206: 206 207: 207 208: 208 209: 209 210: 210 211: 211 212: 212 213: 213 214: 214 215: 215 216: 216 217: 217 218: 218 219: 219 220: 220 221: 221 222: 222 223: 223 224: 224 225: 225 226: 226 227: 227 228: 228 229: 229 230: 230 231: 231 232: 232 233: 233 234: 234 235: 235 236: 236 237: 237 238: 238 239: 239 240: 240 241: 241 242: 242 243: 243 244: 244 245: 245 246: 246 247: 247 248: 248 249: 249 250: 250 251: 251 252: 252 253: 253 254: 254 255: 255 256: 256 257: 257 258: 258 259: 259 260: 260 261: 261 262: 262 263: 263 264: 264 265: 265 266: 266 267: 267 268: 268 269: 269 270: 270 271: 271 272: 272 273: 273 274: 274 275: 275 276: 276 277: 277 278: 278 279: 279 280: 280 281: 281 282: 282 283: 283 284: 284 285: 285 286: 286 287: 287 288: 288 289: 289 290: 290 291: 291 292: 292 293: 293 294: 294 295: 295 296: 296 297: 297 298: 298 299: 299 length: 300 __proto__: Array[0] Array(0) func: function () {return a + b;} arguments: null caller: null length: 0 name: prototype: Object __proto__: function () {} { [native code] } [[FunctionLocation]]: Object [[Scopes]]: Scopes[2] 0: Closure a: 10 b: 100 1: Global Page reloaded. Watch expressions after page reload: globalObject: Object foo: Object bar: Object __proto__: Object __proto__: Object windowAlias: Window array: Array[300] Array(300) [0 .. 99] [100 .. 199] [200 .. 299] 200: 200 201: 201 202: 202 203: 203 204: 204 205: 205 206: 206 207: 207 208: 208 209: 209 210: 210 211: 211 212: 212 213: 213 214: 214 215: 215 216: 216 217: 217 218: 218 219: 219 220: 220 221: 221 222: 222 223: 223 224: 224 225: 225 226: 226 227: 227 228: 228 229: 229 230: 230 231: 231 232: 232 233: 233 234: 234 235: 235 236: 236 237: 237 238: 238 239: 239 240: 240 241: 241 242: 242 243: 243 244: 244 245: 245 246: 246 247: 247 248: 248 249: 249 250: 250 251: 251 252: 252 253: 253 254: 254 255: 255 256: 256 257: 257 258: 258 259: 259 260: 260 261: 261 262: 262 263: 263 264: 264 265: 265 266: 266 267: 267 268: 268 269: 269 270: 270 271: 271 272: 272 273: 273 274: 274 275: 275 276: 276 277: 277 278: 278 279: 279 280: 280 281: 281 282: 282 283: 283 284: 284 285: 285 286: 286 287: 287 288: 288 289: 289 290: 290 291: 291 292: 292 293: 293 294: 294 295: 295 296: 296 297: 297 298: 298 299: 299 length: 300 __proto__: Array[0] Array(0) func: function () {return a + b;} arguments: null caller: null length: 0 name: prototype: Object __proto__: function () {} { [native code] } [[FunctionLocation]]: Object [[Scopes]]: Scopes[2] 0: Closure a: 10 b: 100 1: Global