diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/testBug566556.js')
-rw-r--r-- | js/src/jit-test/tests/basic/testBug566556.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testBug566556.js b/js/src/jit-test/tests/basic/testBug566556.js new file mode 100644 index 000000000..244be57d2 --- /dev/null +++ b/js/src/jit-test/tests/basic/testBug566556.js @@ -0,0 +1,9 @@ +var msg = ""; +try { + this.__defineSetter__('x', Object.create); + this.watch('x', function() {}); + x = 3; +} catch (e) { + msg = e.toString(); +} +assertEq(msg, "TypeError: undefined is not an object or null"); |