chore(benchmarks): use `isSupported()` rather than `!isJsObject()`

Seems more accurate, and would allow `isJsObject()` to handle typical
`{}`-literals in dart, which could be useful

Closes #2995
This commit is contained in:
Caitlin Potter 2015-07-10 23:23:49 -04:00 committed by Tobias Bosch
parent e988f59c08
commit e1e7912ab2
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import {reflector} from 'angular2/src/reflection/reflection';
import {isPresent, isJsObject} from 'angular2/src/facade/lang';
import {isPresent} from 'angular2/src/facade/lang';
import {getIntParameter, bindAction, microBenchmark} from 'angular2/src/test_lib/benchmark_util';
import {BrowserDomAdapter} from 'angular2/src/dom/browser_adapter';
@ -350,7 +350,7 @@ export function main() {
// -- JIT
// Reenable when we have transformers for Dart
if (isJsObject({})) {
if (JitChangeDetection.isSupported()) {
var ng2JitChangeDetector =
setUpChangeDetection(new JitChangeDetection(), numberOfDetectors, object);