Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeArray support is broken in Safari #69

Open
GoogleCodeExporter opened this issue Sep 11, 2015 · 2 comments
Open

TypeArray support is broken in Safari #69

GoogleCodeExporter opened this issue Sep 11, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

TypedArray support is broken in Safari due to the initial check in 
lib-typedarrays.js. In Safari, typeof ArrayBuffer is an 'object'. Here is a 
patch that works for all browsers.

Index: lib-typedarrays.js
===================================================================
--- lib-typedarrays.js  (revision 643)
+++ lib-typedarrays.js  (working copy)
@@ -1,6 +1,6 @@
 (function () {
     // Check if typed arrays are supported
-    if (typeof ArrayBuffer != 'function') {
+    if (typeof ArrayBuffer === 'undefined') {
         return;
     }


Original issue reported on code.google.com by e...@dnanexus.com on 24 Jan 2013 at 11:04

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant