summaryrefslogtreecommitdiff
path: root/js/src/tests/js1_5/Object/regress-362872-02.js
blob: 30f6e7e0c4753224c96e807cfc95dd684c6c3a6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 * Contributor: Blake Kaplan
 */

//-----------------------------------------------------------------------------
var BUGNUMBER = 362872;
var summary = 'script should not drop watchpoint that is in use';
var actual = 'No Crash';
var expect = 'No Crash';

printBugNumber(BUGNUMBER);
printStatus (summary);
 
this.watch('x', function f() {
             print("before");
             x = 3;
             print("after");
           });
x = 3;

reportCompare(expect, actual, summary);