[Webkit-unassigned] [Bug 119472] New: Function.prototype.call() and .apply() in web worker can’t set ‘this’ to global object
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Aug 3 14:49:17 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=119472
Summary: Function.prototype.call() and .apply() in web worker
can’t set ‘this’ to global object
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.8
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore JavaScript
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: flakes at gmail.com
Created an attachment (id=208073)
--> (https://bugs.webkit.org/attachment.cgi?id=208073&action=review)
test cases to reproduce bug
'use strict'
// out here, ‘this’ references the global object
(function() {
// in here, ‘this’ is undefined despite being given as first argument to .call()
}).call(this);
Steps to reproduce:
1. Load attached test page, also available at https://dl.dropboxusercontent.com/u/3736046/test/webworker-call-apply-global/index.html
2. Note that ’typeof this’ in test cases is “undefined” in WebKit nightlies since r153334.
Expected behavior:
’this’ inside the functions should presumably be set to the web worker global object, like it is in all other tested browsers (release Safari, Firefox, Chrome, Chrome Canary).
FWIW, this only seems to happen in strict mode scopes.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list