Summary: | REGRESSION (r153106-r153334): Function.prototype.call() and .apply() in web worker can’t set ‘this’ to global object | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | teeb <flakes> | ||||
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | UNCONFIRMED --- | ||||||
Severity: | Normal | CC: | guybedford, msaboff | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Mac (Intel) | ||||||
OS: | OS X 10.8 | ||||||
URL: | https://dl.dropboxusercontent.com/u/3736046/test/webworker-call-apply-global/index.html | ||||||
Attachments: |
|
Description
teeb
2013-08-03 14:49:00 PDT
Was this fixed in bug 130553 and bug 130554? (In reply to comment #2) > Was this fixed in bug 130553 and bug 130554? I believe it was. 130554 specifically fixed that we can access "this" in strict mode. Is there a test that needs to be reenabled or can we just close this out? I can confirm this is working in the latest nightly against the simple test case in a worker: function a() { "use strict"; if (typeof this == 'undefined') postMessage('"this" is undefined, when it should be the worker global'); else postMessage('"this" is correctly defined to the worker global'); } a.call(self); |