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

PhantomJS does not support Float64Array #10607

Closed
chadaustin opened this issue Jun 21, 2012 · 9 comments
Closed

PhantomJS does not support Float64Array #10607

chadaustin opened this issue Jun 21, 2012 · 9 comments
Milestone

Comments

@chadaustin
Copy link

c...@imvu.com commented:

Here's the concept:

I want to write unit tests for C++ compiled to JavaScript with Emscripten. Emscripten uses typed arrays to implement the C heap, including Float64Array for doubles. We use CasperJS for testing, but its underlying PhantomJS does not support Float64Array. This is because PhantomJS is based on QtWebKit, which does not track the latest WebKit. I'm filing the bug with PhantomJS because not being able to run Emscriptened code in PhantomJS is a major limitation. I will also try to get in touch with the QtWebKit folks.

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

1.6.0 (development). I built from source on June 19, 2012.

What steps will reproduce the problem?

  1. bin/phantomjs
  2. Type Float32Array
  3. Type Float64Array

What is the expected output? What do you see instead?

caustin-mbp:~/imvu/phantomjs
$ bin/phantomjs
phantomjs> Float32Array
{
"prototype": {
"subarray": "[Function]",
"BYTES_PER_ELEMENT": 4,
"set": "[Function]"
},
"BYTES_PER_ELEMENT": 4
}
phantomjs> Float64Array
Can't find variable: Float64Array
phantomjs>

Which operating system are you using?

  • Tested on OS X and Windows.

Did you use binary PhantomJS or did you compile it from source?

  • Compiled from source.

Please provide any additional information below.

WebKit (and all major browsers) support Float64Array but QtWebKit does not track recent versions of WebKit.

Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #607.
🌟   4 people had starred this issue at the time of migration.

@ysangkok
Copy link

ysang...@gmail.com commented:

How come http://trac.webkit.org/wiki/QtWebKitFeatures22 claims Typed Array support?

@chadaustin
Copy link
Author

caustin@gmail.com commented:

It supports most typed array types, just not Float64Array. My colleague is working on upgrading PhantomJS to a newer Qt/WebKit combination, which would add complete support for Float64Array.

@ysangkok
Copy link

ysang...@gmail.com commented:

I think this depends on http://code.google.com/p/phantomjs/issues/detail?id=31

@solmsted
Copy link

Steven....@gmail.com commented:

PhantomJS as of version 1.7.0 also does not support Uint8ClampedArray.

@agladysh
Copy link

So... any updates on this?

@JamesMGreene
Copy link
Collaborator

The plan is that PhantomJS 2.0 will use Chromium under the covers instead of WebKit, which will likely resolve more than 50% of our open bugs in one fell swoop. 😉

@agladysh
Copy link

Cool! Any ETA on that?

@JamesMGreene
Copy link
Collaborator

Not exactly... and apparently we might not jump to Chromium quite yet after all due to timelines vs. its stability on the Qt platform. However, we will still upgrade the WebKit version which is still likely to resolve many, many issues.

See: https://groups.google.com/d/topic/phantomjs/EiXb4iRU7WA/discussion

@ariya
Copy link
Owner

ariya commented Jul 30, 2014

In the current unstable master branch (see #10448 and #10031), Float64Array is now supported.

@ariya ariya closed this as completed Jul 30, 2014
albrow added a commit to albrow/vdom that referenced this issue Feb 28, 2015
…e PhantomJS.

PhantomJS is incompatible with gopherjs due to the lack of support for certain
typed arrays. See ariya/phantomjs#10607
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

6 participants