// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://github.com/w3c/trusted-types
typedef [StringContext=TrustedScript] DOMString ScriptString;
[
IsCodeLike,
Exposed=(Window, Worker)
] interface TrustedScript {
stringifier;
DOMString toJSON();
[RaisesException, CallWith=ScriptState, RuntimeEnabled=TrustedTypesFromLiteral]
static TrustedScript fromLiteral(any templateLiteral);
};