Let frozenActions be an empty list of type {{NotificationAction}}. +
Let frozenActions be a new list.
For each entry in the notification's list of actions, perform the following steps:
Let action be a new {{NotificationAction}}. +
Let action be a new {{NotificationAction}} dictionary.
Set action's {{NotificationAction/action}} to entry's name. @@ -926,15 +926,15 @@ result of the following steps:
Set action's {{NotificationAction/icon}} to entry's icon URL. - -
Call Object.freeze on action, to - prevent accidental mutation by scripts. +
Let jsAction be action, converted to an ECMAScript value. -
Append action to frozenActions. +
Perform SetIntegrityLevel(jsAction, "frozen"). + +
Let idlAction be jsAction, converted to an IDL value. + + +
Append idlAction to frozenActions.
Create a frozen array from frozenActions. @@ -1224,8 +1224,8 @@ urlPrefix: https://w3c.github.io/vibration/ text: validate and normalize urlPrefix: #idl-def-; type: interface text: VibratePattern; url: vibratepattern -urlPrefix: https://tc39.github.io/ecma262/#sec-object.; type: dfn - text: freeze +urlPrefix: https://tc39.github.io/ecma262/#sec-; spec: ECMA-262; type: abstract-op + text: SetIntegrityLevel