Chromium Code Reviews| Index: sdk/lib/html/dart2js/html_dart2js.dart |
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart |
| index b18f079a9551b67d0572c1fbb6eb32ffe25da48a..d079ee2d94f677234564be40b8af409ffdd2c8f2 100644 |
| --- a/sdk/lib/html/dart2js/html_dart2js.dart |
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart |
| @@ -413,9 +413,6 @@ class ArrayBuffer native "*ArrayBuffer" { |
| } |
| static ArrayBuffer _create_1(length) => JS('ArrayBuffer', 'new ArrayBuffer(#)', length); |
| - /// Checks if this type is supported on the current platform. |
| - static bool get supported => JS('bool', 'typeof window.ArrayBuffer != "undefined"'); |
|
vsm
2013/04/18 20:09:15
Note, the current code creates a broken test in Da
|
| - |
| @DomName('ArrayBuffer.byteLength') |
| @DocsEditable |
| final int byteLength; |
| @@ -32067,6 +32064,14 @@ class _LocationWrapper implements Location { |
| static _get(p, m) => JS('var', '#[#]', p, m); |
| static _set(p, m, v) => JS('void', '#[#] = #', p, m, v); |
| } |
| +// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| +// for details. All rights reserved. Use of this source code is governed by a |
| +// BSD-style license that can be found in the LICENSE file. |
| + |
| + |
| +class Supported { |
| + static final typeddata = JS('bool', '!!(window.ArrayBuffer)'); |
| +} |
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |