blob: d0be4407a36a2b06fb657c1f2759ef09d7fac9bc [file] [log] [blame]
// 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);
};