location property

Returns the WorkerLocation object of a worker.

This property is read-only.

Syntax

JavaScript
ptr = object.location

Property values

Type: WorkerLocation

WorkerLocation object

Remarks

The WorkerLocation object is created by using the self.location method inside a worker thread. The self object is a reference to the WorkerGlobalScope object.

See also

WorkerGlobalScope

 

 

Show:
© 2014 Microsoft