Use Heap in DOM object reflector implementation to ensure GC barriers are used.

This commit is contained in:
Josh Matthews 2017-01-19 13:46:43 -05:00
parent be3f35878a
commit e5eaab3523
4 changed files with 19 additions and 26 deletions

View file

@ -58,6 +58,7 @@
var p = new Promise(function() {});
var start = Date.now();
t.resolvePromiseDelayed(p, 'success', 100);
test.step_timeout(function() { window.gc() }, 0);
return p.then(function(v) {
var end = Date.now();
assert_greater_than_equal(end - start, 100);