-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Remove try/catch in actor.postMessage #1584
Conversation
This is also the reason why we didn't notice broken transferables after buffer refactoring: 7e9ff51 |
Well, WTF... I am now testing on IE11 and unable to reproduce any issue with Worker.postMessage and transferables. Using the same test case that I tried earlier, IE 11.0.9600.17801 prints "postMessage with array transfer 0". I'm not sure if MS patched this or what. |
Wow. So apparently it does support transferring at least one object? Also, is the Win version the same? |
@jfirebaugh OK I'm now trying to recall a conversation about IE11 transferable objects with a friend — as far as I remember, IE11 doesn't support transferable array buffers and the second argument, and it's there for a different purpose — for an array of MessagePort objects, whatever that means. |
@mourner that's what I thought too, but testing is telling me otherwise.
Can you replicate?
|
@jfirebaugh don't have a Windows machine handy atm. |
Summoning @danzel here who did the original IE11 PR, any thoughts? |
Uh yeah this is weird. MS have been known to patch things in IE11 occasionally though. The only notes on the original issue I have are here: But it looks like it doesn't cause an error any more from my limited testing, so yay? :) The MS docs on this are a bit trash for this: |
@mourner @jfirebaugh Do we still want to pursue these changes? |
@lucaswoj I don't know, IE is a weird beast. |
As far as I can tell, all the I'm testing this branch on our Windows machine now and everything looks good! Anything else you'd like to see before 🚢 this @mourner @jfirebaugh? |
Nope. If it works, |
a1060a3
to
c806e5a
Compare
Makes actor.postMessage optimizable by V8 and also makes sure we see any errors thrown on postMessage. Not tested in IE yet.