Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

ArrayBuffer.isView is undefined #14868

Closed
hitsthings opened this issue Mar 5, 2017 · 3 comments
Closed

ArrayBuffer.isView is undefined #14868

hitsthings opened this issue Mar 5, 2017 · 3 comments

Comments

@hitsthings
Copy link

hitsthings commented Mar 5, 2017

  1. Which version of PhantomJS are you using? Tip: run phantomjs --version.
    2.1.1

  2. What steps will reproduce the problem?

  3. Open a webpage with in-browser JS that runs ArrayBuffer.isView("{}")

  4. Which operating system are you using? OSX

  5. Did you use binary PhantomJS or did you compile it from source?
    npm install -g

  6. Please provide any additional information below.
    This function is supported in all major browsers (and is used by BrowserFS, which therefore fails).

Cross-reference with BrowserFS issue - jvilk/BrowserFS#175

This is causing an archiving issue for the Internet Archive iiuc - https://twitter.com/textfiles/status/838185877067071488

@twalpole
Copy link

twalpole commented Mar 5, 2017

ArrayBuffer is ES2015 which PhantomJS 2.1.1 doesn't support -- try the 2.5 beta, or polyfill it

@hitsthings
Copy link
Author

hitsthings commented Mar 5, 2017

Thanks for that! The weird thing is that ArrayBuffer existed, but had no isView method. Possible there was some half polyfill mixed in somewhere. I tried the beta but I'm getting

[user dir]$ /Users/user/Downloads/phantomjs-2.5.0-beta-macos/bin/phantomjs script.js
dyld: Library not loaded: /usr/local/opt/webp/lib/libwebp.6.dylib
  Referenced from: /Users/user/Downloads/phantomjs-2.5.0-beta-macos/bin/phantomjs
  Reason: image not found
Trace/BPT trap: 5

I'll need to figure that out to see if the beta fixes it. Thanks again!

@ariya
Copy link
Owner

ariya commented Mar 3, 2018

Modern JavaScript features (from ES6/ES2015 or later) will be only supported via an updated QtWebKit.
From now on, please track #15342. Thank you!

@ariya ariya closed this as completed Mar 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants