The EdgeWorkers service is built on V8 and supports various ECMAScript language features implemented by the V8 JavaScript engine. APIs commonly used by web developers, that are not part of the language specification itself, are not provided by EdgeWorkers.

The following are examples of common APIs not provided by EdgeWorkers: DOM APIs, Network request APIs such as XMLHttpRequest, and the Fetch API.

JavaScript language feature modifications

Review the table below for information about updates to the JavaScript runtime security.

SharedArrayBufferremovedSets the V8 Flag --no-harmony-SharedArrayBuffer.
Prevents the use of features such as SharedArrayBuffer and Atomics in the API.
Code GenerationremovedDisables code generation from strings.
Prevents the use of features such as new Function () and eval in the API.
System TimemodifiedPrevents time from incrementing during an event handler in the JavaScript API.
Features such as Date.now() return the start time of the callback execution.
WebAssemblyremovedSets the V8 Flag --no-expose-wasm.
Prevents the use of features such as WebAssembly in the API.


The EdgeWorkers service compiles scripts as an ECMAScript 6 module. When using an ECMAScript 6 module you must enable strict mode and export the event handler functions.

Different event handlers may be executed in different instances of the JavaScript engine. As a result, writes to global JavaScript variables within event handlers are not reliably preserved across separate event handler executions.