Skip to content

Commit

Permalink
Comment out try/catch, it causes de-optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
arv committed Nov 6, 2013
1 parent 9b812c5 commit d3cc8c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions experiments/test-instance-type-check.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
var xhr = new XMLHttpRequest;
xhr.addEventListener('x', function() {}, true);

try {
Element.prototype.getAttribute.call(xhr, 'x');
alert('FAILED');
} catch (ex) {
// OK
}
// try {
// Element.prototype.getAttribute.call(xhr, 'x');
// alert('FAILED');
// } catch (ex) {
// // OK
// }

function test() {
for (var i = 0; i < 1e8; i++) {
Expand Down

0 comments on commit d3cc8c5

Please sign in to comment.