Skip to content

Commit

Permalink
A test case for #482
Browse files Browse the repository at this point in the history
  • Loading branch information
macbre committed May 30, 2015
1 parent cdff45b commit 6e347c0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/webroot/js-globals.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<body>
<script>
var a_global = 1,
falsy = false;

function foo() {
console.log('bar');
}

// overwrite some core objects (#482)
window.JSON = {
foo: 'bar'
};

Array.prototype.toJSON = foo;
</script>
</body>

0 comments on commit 6e347c0

Please sign in to comment.