diff options
Diffstat (limited to 'js/src/tests/js1_5/Object/regress-362872-02.js')
-rw-r--r-- | js/src/tests/js1_5/Object/regress-362872-02.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/js/src/tests/js1_5/Object/regress-362872-02.js b/js/src/tests/js1_5/Object/regress-362872-02.js new file mode 100644 index 000000000..edee43a4a --- /dev/null +++ b/js/src/tests/js1_5/Object/regress-362872-02.js @@ -0,0 +1,24 @@ +/* -*- indent-tabs-mode: nil; js-indent-level: 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); |