mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 13:48:23 +02:00
MozReview-Commit-ID: JobfpedA88C Differential Revision: https://phabricator.services.mozilla.com/D13823 --HG-- rename : devtools/client/debugger/test/mochitest/doc_promise-get-allocation-stack.html => devtools/server/tests/browser/doc_promise-get-allocation-stack.html rename : devtools/client/debugger/test/mochitest/doc_promise-get-fulfillment-stack.html => devtools/server/tests/browser/doc_promise-get-fulfillment-stack.html rename : devtools/client/debugger/test/mochitest/doc_promise-get-rejection-stack.html => devtools/server/tests/browser/doc_promise-get-rejection-stack.html extra : moz-landing-system : lando
27 lines
582 B
HTML
27 lines
582 B
HTML
<!-- Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<title>Promise test page</title>
|
|
</head>
|
|
|
|
<body>
|
|
<script type="text/javascript">
|
|
"use strict";
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
function makePromises() {
|
|
const p = new Promise(() => {});
|
|
p.name = "p";
|
|
const q = p.then();
|
|
q.name = "q";
|
|
const r = p.catch(() => {});
|
|
r.name = "r";
|
|
}
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|