Skip to content

Commit 7720af5

Browse files
Add a way to test options breakage in the example page.
1 parent d2ad938 commit 7720af5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

example/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
id: 5
2020
})
2121

22+
function testOptions() {
23+
Raven.context({tags: {foo: 'bar'}}, function() {
24+
throw new Error('foo');
25+
});
26+
}
2227

2328
</script>
2429
<body>
@@ -27,5 +32,7 @@
2732

2833
<button onclick="divide(1, 0)">Sourcemap breakage</button>
2934
<button onclick="derp()">window.onerror</button>
35+
<button onclick="testOptions()">test options</button>
36+
3037
</body>
3138
</html>

0 commit comments

Comments
 (0)