Files
firefox/devtools/client/debugger/test/mochitest/doc_promise-get-allocation-stack.html
T
Paolo Amadini 7afba17088 Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P
2017-06-19 11:32:37 +01:00

25 lines
506 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">
function makePromises() {
var p = new Promise(() => {});
p.name = "p";
var q = p.then();
q.name = "q";
var r = p.catch(() => {});
r.name = "r";
}
</script>
</body>
</html>